/* ============================================================
   STUDIO TECNICO GEOMETRA MILANO — style.css
   Palette: Blu notte #12213a | Oro #c9a040 | Bianco #ffffff
   Font: Montserrat (titoli) + Open Sans (testo)
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #12213a;
  --navy-light: #1c3057;
  --gold:       #c9a040;
  --gold-light: #e0b85a;
  --white:      #ffffff;
  --light-bg:   #f5f6f8;
  --text:       #333d4b;
  --text-muted: #6b7685;
  --border:     #dde2ea;
  --shadow:     0 4px 24px rgba(18,33,58,.10);
  --shadow-lg:  0 8px 40px rgba(18,33,58,.16);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: .3s ease;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --max-w:      1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---- Utility ---- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}
.section-pad { padding: 88px 0; }
.bg-light    { background: var(--light-bg); }
.accent      { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,160,64,.35);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ---- Section labels / headers ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p   { color: var(--text-muted); }
.section-header--white .section-header { color: var(--white); }
.section-header--white h2,
.section-header--white p { color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.logo-icon {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo-text strong { font-weight: 700; }
.logo-text small  { font-size: .72rem; opacity: .75; letter-spacing: .06em; }

/* Nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.main-nav a.active { color: var(--gold); }
.btn-nav {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 22px !important;
}
.btn-nav:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(18,33,58,.92) 45%, rgba(18,33,58,.72) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  /* Fallback gradient se l'immagine non è disponibile -- hero_bg_url sovrascrive via style inline */
  background-color: var(--navy);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(28,48,87,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  max-width: 660px;
}
.hero-pre {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint a {
  color: rgba(255,255,255,.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--gold);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item { color: var(--navy); }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-item p {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.col-text h2 { margin-bottom: 24px; }
.col-text p  { color: var(--text-muted); margin-bottom: 16px; }
.col-text .btn { margin-top: 12px; }

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.img-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
/* Placeholder quando l'immagine non è disponibile */
.img-placeholder {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.img-placeholder::after {
  content: '\f0ac';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 5rem;
  color: rgba(255,255,255,.15);
}
.img-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 22px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: var(--shadow);
}
.img-badge i { font-size: 1.6rem; }

/* ============================================================
   SERVIZI
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(201,160,64,.12);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.4rem;
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(201,160,64,.22); }
.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p  { font-size: .9rem; color: var(--text-muted); }

/* ============================================================
   PERCHÉ SCEGLIERCI
   ============================================================ */
.perche {
  background: var(--navy);
}
.perche .section-header { margin-bottom: 48px; }
.perche .section-label { color: var(--gold); }
.perche h2 { color: var(--white); }
.perche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.perche-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}
.perche-item:hover { background: rgba(255,255,255,.05); }
.perche-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.perche-item h4 { color: var(--white); margin-bottom: 10px; }
.perche-item p  { font-size: .88rem; color: rgba(255,255,255,.65); }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.news-img--1 { background: linear-gradient(135deg, #1c4f82 0%, #0d2a4f 100%); }
.news-img--2 { background: linear-gradient(135deg, #2e6b50 0%, #153a28 100%); }
.news-img--3 { background: linear-gradient(135deg, #7b4f12 0%, #3d2608 100%); }
.news-body { padding: 28px; }
.news-date {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.news-body h3   { color: var(--navy); margin-bottom: 10px; font-size: 1.05rem; }
.news-body p    { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.link-more {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.link-more:hover { gap: 10px; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti { background: var(--navy); }
.contatti .section-label { color: var(--gold); }
.contatti h2,
.contatti h3 { color: var(--white); }
.contatti p  { color: rgba(255,255,255,.7); margin-bottom: 32px; }
.two-col--contatti { gap: 64px; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: rgba(255,255,255,.8);
}
.contact-list i {
  width: 40px; height: 40px;
  background: rgba(201,160,64,.15);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-list a { color: rgba(255,255,255,.8); transition: color var(--transition); }
.contact-list a:hover { color: var(--gold); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 { color: var(--navy); margin-bottom: 28px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,160,64,.18);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid { border-color: #e05858; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { display: block; font-size: .78rem; color: #e05858; margin-top: 4px; min-height: 18px; }
.form-group--privacy { margin-bottom: 24px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; accent-color: var(--gold); }
.checkbox-label a { color: var(--gold); text-decoration: underline; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(35,150,80,.12);
  border: 1px solid rgba(35,150,80,.3);
  color: #1e7d40;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: .9rem;
}

/* ============================================================
   MAP
   ============================================================ */
.map-container { line-height: 0; }
.map-container iframe { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0c1829;
  color: rgba(255,255,255,.65);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: .88rem; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  margin-bottom: 10px;
}
.footer-contact i { color: var(--gold); width: 14px; }
.footer-contact a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   PAGE HERO (pagine interne)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background:
    linear-gradient(160deg, rgba(18,33,58,.94) 45%, rgba(18,33,58,.75) 100%),
    url('../img/hero-bg.jpg') center/cover no-repeat;
  background-color: var(--navy);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(28,48,87,.55) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
}
.page-hero-content p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 560px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .8rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .04em;
}
.breadcrumb a        { color: var(--gold); }
.breadcrumb a:hover  { text-decoration: underline; }
.breadcrumb i        { font-size: .6rem; color: rgba(255,255,255,.4); }
.breadcrumb span     { color: rgba(255,255,255,.7); }

/* ============================================================
   VALORI (chi siamo)
   ============================================================ */
.valori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.valore-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.valore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.valore-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(201,160,64,.15);
  line-height: 1;
  margin-bottom: 12px;
}
.valore-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1rem; }
.valore-card p  { font-size: .88rem; color: var(--text-muted); }

/* ============================================================
   PROCESSO DI LAVORO (servizi)
   ============================================================ */
.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.processo-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .3;
}
.processo-step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.processo-num {
  width: 54px; height: 54px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(201,160,64,.35);
}
.processo-step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.processo-step p  { font-size: .88rem; color: var(--text-muted); }

/* ============================================================
   CONTATTI CTA STRIP
   ============================================================ */
.contatti-cta {
  background: var(--navy);
}
.contatti-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.contatti-cta .section-label { color: var(--gold); }
.contatti-cta h2 { color: var(--white); margin-bottom: 8px; }
.contatti-cta p  { color: rgba(255,255,255,.7); max-width: 480px; }
.contatti-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============================================================
   SKELETON + DATA MESSAGES (ripetuti per chiarezza)
   ============================================================ */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  width: 100%;
}
.skeleton-grid--news { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.skeleton-card {
  background: linear-gradient(90deg, #eaecef 25%, #f5f5f5 50%, #eaecef 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 16px;
  height: 200px;
}
.skeleton-card--news { height: 340px; }
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.data-empty, .data-error {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: .95rem;
  width: 100%;
  grid-column: 1/-1;
}
.data-error { color: #e05858; }

/* news-img extra colors */
.news-img--4 { background: linear-gradient(135deg, #4a1a7b 0%, #26094d 100%); }
.news-img--5 { background: linear-gradient(135deg, #7b1a1a 0%, #4d0909 100%); }

/* ============================================================
   MODALE ARTICOLO COMPLETO
   ============================================================ */
.news-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,20,40,.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: nmFade .25s ease;
}
.news-modal-overlay[hidden] { display: none; }
@keyframes nmFade { from { opacity: 0; } to { opacity: 1; } }
.news-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  animation: nmSlide .25s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes nmSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.news-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  background: rgba(18,33,58,.08);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: .9rem;
  color: var(--text);
  transition: background var(--transition);
}
.news-modal-close:hover { background: rgba(18,33,58,.16); }
.news-modal-date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.news-modal-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}
.news-modal-body p { color: #4a5568; line-height: 1.8; margin-bottom: 16px; }

/* Gallery carousel in news modal */
.news-gallery {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a1428;
}
.gallery-viewport {
  position: relative;
  width: 100%;
  padding-top: 60%;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-slide.active { opacity: 1; }
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.gallery-btn:hover { background: rgba(0,0,0,.85); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .75rem;
  padding: 2px 10px;
  border-radius: 20px;
  pointer-events: none;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
/* Logo immagine personalizzata */
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo--footer .logo-img { height: 36px; }

.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover   { background: var(--gold-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col       { grid-template-columns: 1fr; gap: 48px; }
  .col-image     { order: -1; }
  .img-frame img,
  .img-placeholder { height: 340px; }
  .contatti-cta-inner { flex-direction: column; align-items: flex-start; }
  .processo-grid::before { display: none; }
}

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; padding: 16px 24px 24px; gap: 4px; }
  .main-nav a  { display: block; padding: 12px 16px; }

  .form-row   { grid-template-columns: 1fr; }
  .hero-cta   { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .page-hero { padding: 120px 0 60px; }
  .processo-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .news-modal { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .stats-grid { gap: 12px; }
  .contact-form  { padding: 28px 20px; }
  .back-to-top   { bottom: 20px; right: 20px; }
  .processo-grid { grid-template-columns: 1fr; }
  .contatti-cta-actions { width: 100%; }
  .contatti-cta-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   SERVICE CARD – link "Scopri il servizio"
   ============================================================ */
.service-card {
  display: flex;
  flex-direction: column;
}
.service-card p { flex: 1; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: gap var(--transition), color var(--transition);
}
.service-card-link:hover {
  gap: 12px;
  color: var(--navy);
}
.service-card-link i { font-size: .75rem; }

/* ============================================================
   PAGINA SERVIZIO DEDICATA
   ============================================================ */
.page-hero--servizio .page-hero-content h1 { margin-bottom: 8px; }
.servizio-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}
.servizio-hero-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(201,160,64,.18);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.9rem;
}

/* Due colonne pagina servizio */
.two-col--servizio {
  gap: 60px;
  align-items: flex-start;
}
.two-col--servizio .col-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 18px;
}
.two-col--servizio .col-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}
/* Immagine di copertina nella pagina servizio */
.servizio-img-full {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}
.servizio-img-full img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.servizio-img-full:hover img { transform: scale(1.02); }
.servizio-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Pulsante outline su sfondo chiaro */
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Punti box */
.punti-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: sticky;
  top: 100px;
}
.punti-box h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.punti-box h3 i { color: var(--gold); }
.punti-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.punti-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  line-height: 1.5;
}
.punti-list li i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
  font-size: .8rem;
}
.punti-box--placeholder {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.punti-icon-big {
  width: 72px;
  height: 72px;
  background: rgba(201,160,64,.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.8rem;
}
.punti-box--placeholder p {
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .servizio-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .two-col--servizio   { flex-direction: column; gap: 36px; }
  .punti-box           { position: static; }
  .servizio-cta-btns   { flex-direction: column; }
  .servizio-cta-btns .btn,
  .servizio-cta-btns .btn-outline-dark { width: 100%; justify-content: center; }
}

/* ============================================================
   MODAL RICHIESTA SERVIZIO (overlay sito)
   ============================================================ */
.modal-overlay--site {
  position: fixed;
  inset: 0;
  background: rgba(12,22,40,.65);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-overlay--site[hidden] { display: none; }

.modal-site {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px 48px;
  position: relative;
  animation: modalIn .22s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-site-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition);
}
.modal-site-close:hover { background: var(--navy); color: var(--white); }

.modal-site-header { margin-bottom: 28px; }
.modal-site-header .section-label { margin-bottom: 6px; }
.modal-site-header h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

/* Form richiesta nel modal */
.modal-richiesta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-richiesta-form .form-group { margin-bottom: 16px; }
.modal-richiesta-form .form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.modal-richiesta-form .req { color: var(--gold); }
.modal-richiesta-form input,
.modal-richiesta-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.modal-richiesta-form input:focus,
.modal-richiesta-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,160,64,.15);
}
.modal-richiesta-form textarea { resize: vertical; }
.modal-richiesta-form .form-error { color: #d94f4f; font-size: .78rem; margin-top: 4px; display: block; }
.modal-richiesta-form .form-group--privacy { margin-top: 4px; }
.modal-richiesta-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
}
.modal-richiesta-form .checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  accent-color: var(--gold);
}
.modal-richiesta-form .checkbox-label a { color: var(--gold); }
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e8f7f0;
  border: 1.5px solid #3cb97a;
  border-radius: var(--radius);
  color: #1e7a4a;
  padding: 16px 20px;
  font-size: .92rem;
  margin-top: 16px;
}
.form-success i { font-size: 1.2rem; flex-shrink: 0; }
.form-error-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf0f0;
  border: 1.5px solid #e05858;
  border-radius: var(--radius);
  color: #c0392b;
  padding: 14px 18px;
  font-size: .88rem;
  margin-top: 12px;
}
.form-error-msg[hidden] { display: none; }
.form-success[hidden]   { display: none; }

@media (max-width: 540px) {
  .modal-site              { padding: 32px 24px; }
  .modal-richiesta-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px; left: 32px;
  width: 52px; height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 999;
  transition: transform .2s ease, background .2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  color: #fff;
}

/* ============================================================
   WHATSAPP QR SECTION (contatti.php)
   ============================================================ */
.whatsapp-qr {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
  padding: 64px 0;
}
.whatsapp-qr-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.whatsapp-qr-text { max-width: 480px; }
.whatsapp-qr-text h2 { color: var(--navy); margin-bottom: 12px; }
.whatsapp-qr-text p  { color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); color: #fff; }
.whatsapp-qr-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.whatsapp-qr-img img {
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  display: block;
}
.whatsapp-qr-hint {
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; left: 20px; width: 46px; height: 46px; font-size: 1.4rem; }
  .whatsapp-qr-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .whatsapp-qr-text { max-width: 100%; }
}
