@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #ffffff;
  --bg2:     #f4f7fc;
  --bg3:     #e8eef8;
  --line:    rgba(26,61,110,.13);
  --white:   #0d1b2e;
  --off:     rgba(13,27,46,.72);
  --dim:     rgba(13,27,46,.48);
  --accent:  #1c3d6e;
  --accent2: #2c72b8;
  --gold:    #1c3d6e;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'DM Sans', sans-serif;
}

/* ── TEMA CALDO (terracotta) ── */
[data-theme="warm"] {
  --bg:      #cfa582;
  --bg2:     #cb9e78;
  --bg3:     #dab892;
  --line:    rgba(60,30,10,.15);
  --white:   #120a03;
  --off:     rgba(18,10,3,.78);
  --dim:     rgba(18,10,3,.55);
  --accent:  #7a3d1a;
  --accent2: #c06820;
  --gold:    #c87941;
}
/*
[data-theme="warm"] header {
  background: rgba(30,26,20,0.3);
  backdrop-filter: blur(1px);
}*/
[data-theme="warm"] body.hero-page.homepage.scrolled header,
[data-theme="warm"] body.hero-page:not(.homepage).scrolled header {
  background: rgba(207,165,130,.22) !important;
}
[data-theme="warm"] #scroll-top {
  background: rgba(199,155,118,.96) !important;
  border-color: rgba(60,30,10,.3) !important;
  box-shadow: none !important;
}
[data-theme="warm"] .cta-band { background: #3a6680; }
[data-theme="warm"] .cta-band h2 em { color: #f5d0a0; }
[data-theme="warm"] .cta-band .btn-primary { background: #fff8f0; color: #7a3d1a; }

html { scroll-behavior: smooth; overflow-x: hidden; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .15;
}

/* HEADER — glassmorphism, nessun colore solido */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5%;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 26, 20, 0.3);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  transition: background .3s, border-color .3s;
}
/* Hero pages: header fixed sopra la foto */
body.hero-page header {
  position: fixed;
  width: 100%;
  background: linear-gradient(to bottom, rgba(8,18,42,.42) 0%, rgba(8,18,42,.18) 65%, transparent 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .3s ease, border-color .3s;
}
/* Overlay scuro su hover mouse o basso scroll (60px–75% hero): testo sempre leggibile */
body.hero-page header.nav-hover,
body.hero-page.nav-low-scroll header {
  background: rgba(8,18,42,0.52) !important;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
body.hero-page header nav a { color: rgba(255,255,255,.88); text-shadow: 0 1px 5px rgba(0,0,0,.32); }
body.hero-page header nav a:hover { color: #fff; background: rgba(255,255,255,.10); }
body.hero-page .nav-cta { border-color: rgba(255,255,255,.35) !important; color: #fff !important; }
body.hero-page .hamburger span { background: #fff !important; width: 24px; height: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
/* Scroll — stessa estetica blur, leggermente più opaco */
body.hero-page.homepage.scrolled header,
body.hero-page:not(.homepage).scrolled header {
  background: rgba(30, 26, 20, 0.3) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
/* Testo nav quando si scorre su foto (aggiunge ombra per leggibilità) */
body.hero-page.scrolled header nav a { color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.3); }
body.hero-page.scrolled header nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
body.hero-page.scrolled .nav-cta { border-color: rgba(255,255,255,.4) !important; color: #fff !important; }
body.hero-page.scrolled .nav-cta:hover { background: rgba(255,255,255,.18) !important; }
body.hero-page.scrolled .hamburger span { background: #fff !important; }
body.hero-page.scrolled .header-phone { color: #fff !important; border-color: rgba(255,255,255,.35) !important; }

.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img  {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-link { display: flex; align-items: center; text-decoration: none; opacity: .75; transition: opacity .2s; }
.footer-logo-link:hover { opacity: 1; }
.footer-logo-img { height: 88px; width: auto; display: block; object-fit: contain; }

nav { display: flex; align-items: center; gap: 2px; }

nav a {
  color: rgba(18,10,3,.82);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
nav a:hover, nav a.active { color: var(--accent); background: rgba(28,61,110,.07); }

.nav-cta {
  border: 1px solid rgba(28,61,110,.35) !important;
  color: var(--accent) !important;
  margin-left: 10px;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
/* Ponte invisibile che copre lo spazio tra bottone e menu: senza, il mouse
   "esce" dall'hover di .nav-dropdown attraversando quello spazio e il menu
   si chiude prima che l'utente riesca a raggiungerlo e cliccare. */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 12px;
}
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(18,10,3,.82);
  padding: 6px 14px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn,
.nav-dropdown-btn.active { color: var(--accent); background: rgba(28,61,110,.07); }
.nav-dropdown-btn .dd-trigger {
  transition: transform .22s ease, opacity .2s;
  opacity: .60;
  flex-shrink: 0;
}
.nav-dropdown-btn:hover .dd-trigger,
.nav-dropdown-btn.active .dd-trigger { opacity: 1; }
.nav-dropdown.open .nav-dropdown-btn .dd-trigger { transform: rotate(180deg); opacity: 1; }
/* Default panel — pagine non-hero (sfondo chiaro) */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(28,61,110,.10);
  border-radius: 14px;
  min-width: 220px;
  padding: 8px;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-dropdown-btn { color: var(--accent); background: rgba(28,61,110,.07); }
.nav-dropdown:hover .nav-dropdown-btn .dd-trigger { transform: rotate(180deg); opacity: 1; }
body.hero-page .nav-dropdown:hover .nav-dropdown-btn,
body.hero-page.scrolled .nav-dropdown:hover .nav-dropdown-btn { color: #fff; background: rgba(255,255,255,.10); text-shadow: none; }
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .81rem;
  letter-spacing: .03em;
  color: rgba(18,10,3,.82) !important;
  text-decoration: none;
  border-bottom: none !important;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover { background: rgba(28,61,110,.07); color: var(--accent) !important; }
.nav-dropdown-menu a.active { background: rgba(28,61,110,.09); color: var(--accent) !important; }
.dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(28,61,110,.07);
  border: 1px solid rgba(28,61,110,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background .15s, border-color .15s;
}
.nav-dropdown-menu a:hover .dd-icon,
.nav-dropdown-menu a.active .dd-icon { background: rgba(28,61,110,.12); border-color: rgba(28,61,110,.22); }
[data-theme="warm"] .nav-dropdown-menu { background: rgba(248,242,234,.95); border-color: rgba(200,121,65,.12); }
/* Hero-page panel — sfondo scuro pieno (non il vetro trasparente dell'header):
   sopra una foto il pannello deve restare leggibile a prescindere da cosa c'è
   sotto, quindi niente più trasparenza forte come nell'header stesso. */
body.hero-page .nav-dropdown-menu {
  background: rgba(40,42,46,.95);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
body.hero-page .nav-dropdown-menu a { color: rgba(255,255,255,.82) !important; }
body.hero-page .nav-dropdown-menu a:hover { background: rgba(255,255,255,.10); color: #fff !important; }
body.hero-page .nav-dropdown-menu a.active { background: rgba(44,114,184,.25); color: #fff !important; }
body.hero-page .dd-icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.85); }
body.hero-page .nav-dropdown-menu a:hover .dd-icon { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.28); }
/* Bottone dropdown su hero */
body.hero-page .nav-dropdown-btn { color: rgba(255,255,255,.88); text-shadow: 0 1px 5px rgba(0,0,0,.32); }
body.hero-page .nav-dropdown-btn:hover,
body.hero-page .nav-dropdown.open .nav-dropdown-btn,
body.hero-page .nav-dropdown-btn.active { color: #fff; background: rgba(255,255,255,.10); text-shadow: none; }
body.hero-page.scrolled .nav-dropdown-btn { color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.3); }
body.hero-page.scrolled .nav-dropdown-btn:hover,
body.hero-page.scrolled .nav-dropdown.open .nav-dropdown-btn,
body.hero-page.scrolled .nav-dropdown-btn.active { color: #fff; background: rgba(255,255,255,.12); text-shadow: none; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1000;
  position: relative;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1a3a5c;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger.open { opacity: 0; pointer-events: none; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  bottom: 0;
  background: #0a1520;
  z-index: 999;
  padding: 2rem 8% 2rem;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .15s;
  letter-spacing: .02em;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #5baee0; }

/* PAGE HERO (inner pages) — foto dall'alto con header fisso sovrapposto */
.page-hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Overlay scuro sulla foto */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 25, 45, .55);
  z-index: 1;
  pointer-events: none;
}
/* Griglia decorativa sopra l'overlay */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 2;
}
.page-hero-inner {
  position: relative;
  z-index: 3;
  padding: 0 5% 80px;
  width: 100%;
}
/* Testo bianco su foto scura */
.page-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5baee0;
  margin-bottom: 20px;
}
.page-hero .hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #5baee0;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: #fff;
}
.page-hero h1 em { font-style: italic; color: #1a5ca8; }

.page-hero p {
  font-size: .95rem;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  line-height: 1.75;
  font-weight: 300;
}

/* Homepage: stat-box a 3 colonne (Certificazioni Mediche / Aeromedical Point / Centro ORL PAV) */
.hero-statbox {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(20,38,64,.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  margin-top: 22px;
  max-width: 520px;
  overflow: hidden;
}
.hero-statbox-col {
  position: relative;
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,.16);
}
.hero-statbox-col:last-child { border-right: none; }
.hero-statbox-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: -8px 0 0 -8px;
}
.hero-statbox-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,.1) 55%, rgba(255,255,255,0) 78%);
}
.hero-statbox-logo img {
  position: relative;
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
}
.hero-statbox-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.2;
  color: #4f9bdb;
}
@media (max-width: 680px) {
  .page-hero { min-height: 88svh; }
  .page-hero-inner { padding: 0 5% 48px; }
  .page-hero h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .page-hero p { font-size: .88rem; }
  .hero-statbox { grid-template-columns: 1fr; max-width: 100%; margin-top: 20px; }
  .hero-statbox-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,.16); padding: 14px; }
  .hero-statbox-col:last-child { border-bottom: none; }
  .hero-statbox-logo { width: 68px; height: 68px; margin: -8px 0 0 -8px; }
  .hero-statbox-logo img { height: 46px; }
  .hero-statbox-title { font-size: .88rem; }
}

/* SECTIONS */
.section { padding: 72px 5%; position: relative; }
.section.alt { background: var(--bg2); }

.section-eyebrow {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--gold); }

/* TWO-COL */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

/* ── IMG-WRAP: altezza fissa e uniforme in tutte le sezioni (desktop) ──
   Stessa altezza per ogni sezione .two-col del sito, indipendentemente
   dalle proporzioni della singola foto (object-fit:cover ritaglia) e dalla
   lunghezza del testo (gestita a parte da "Leggi di più", che agisce solo
   sulla colonna di testo) — niente più calcoli JS legati a foto o testo. */
@media (min-width: 901px) {
  .section:has(.two-col .img-wrap) {
    padding-top: 0;
    padding-bottom: 0;
  }
  .section:has(.two-col .img-wrap) .two-col > div:not(.img-wrap) {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .two-col .img-wrap { height: clamp(420px, 42vw, 600px); }
}

/* ── DUOTONE BLU/BRONZO ── */
.img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  align-self: stretch;
  min-height: 320px;
}
.img-wrap img,
.content-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  filter: grayscale(.25) brightness(.95) saturate(.85) contrast(1.03);
  transition: transform .4s ease;
}
/* Sfumature bordi rimosse */
.img-wrap::after {
  display: none;
}
/* Duotone leggero mantenuto */
.img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,61,110,.07) 0%, rgba(207,165,130,.04) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.full-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 460px;
}
.full-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(.25) brightness(.95) saturate(.85) contrast(1.03);
  border-radius: 0;
}
/* Sfumatura bordi rimossa anche da full-img-wrap */
.full-img-wrap::after {
  display: none;
}
@media (max-width: 680px) {
  .full-img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 320px;
  }
}

/* BODY TEXT */
.body-text { font-size: .92rem; color: var(--off); line-height: 1.85; font-weight: 300; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; word-break: break-word; lang: it; }
.body-text p + p { margin-top: 1rem; }
.body-text strong { color: var(--white); font-weight: 500; }
.body-text ul { margin: .6rem 0 1rem 1.1rem; }
.body-text li { margin-bottom: .4rem; }

/* LEGGI DI PIÙ / LEGGI MENO (testi lunghi nelle sezioni a due colonne) */
/* Disattiva lo stretch nativo del grid per le sezioni gestite via JS (main.js):
   con .body-text in overflow:hidden lo stretch crea una dipendenza circolare
   con la misurazione dell'altezza, quindi l'altezza della foto viene sincronizzata
   manualmente (vedi _syncImgHeights in main.js). */
.two-col.two-col-js-sync { align-items: start; }
.body-text-collapsible {
  position: relative;
  max-height: 230px;
  overflow: hidden;
  transition: max-height .4s ease;
}
.body-text-collapsible::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  transition: opacity .3s;
  pointer-events: none;
}
.section.alt .body-text-collapsible::after { background: linear-gradient(to bottom, transparent, var(--bg2)); }
.body-text-collapsible.expanded { max-height: 2400px; }
.body-text-collapsible.expanded::after { opacity: 0; }

.body-text-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  background: none; border: none; padding: 0 0 2px;
  color: var(--accent); font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.body-text-toggle:hover { opacity: .75; }

/* COST BOX */
.cost-box {
  display: inline-block;
  background: rgba(28,61,110,.1);
  border: 1px solid rgba(28,61,110,.25);
  border-radius: 2px;
  padding: 16px 22px;
  margin-top: 1.2rem;
  font-size: .88rem;
  color: var(--white);
}
.cost-box strong { display: block; color: var(--accent); font-weight: 500; margin-bottom: 5px; font-size: .95rem; }

/* CREDS GRID */
.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 40px;
}
.cred {
  background: var(--bg);
  padding: 20px;
}
.cred-val {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.cred-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* CTA BAND */
.cta-band {
  padding: 72px 5%;
  background: var(--accent);
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: #fff;
}
.cta-band h2 em { font-style: italic; color: #5baee0; }
.cta-band p { font-size: .9rem; color: rgba(255,255,255,.78); max-width: 620px; line-height: 1.7; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: rgba(255,255,255,.9); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }

/* DOWNLOAD LIST (modulistica) */
.download-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.download-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--white);
  font-weight: 400;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.download-list li a:hover { border-color: var(--accent); background: var(--bg); }
.dl-badge {
  font-size: .68rem;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.dl-sub { font-size: .78rem; color: var(--dim); margin-top: 2px; }

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-icon-wrap {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-wrap svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.contact-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.contact-val { font-size: .9rem; color: var(--white); }
.contact-val a { color: var(--accent); text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }
.map-wrap { border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: none; filter: grayscale(.3) brightness(.95) saturate(.8); }

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg2);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .75rem; letter-spacing: .06em; color: var(--dim); text-decoration: none; text-transform: uppercase; transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: .72rem; color: var(--dim); letter-spacing: .05em; line-height: 1.7; text-align: right; }

/* SCROLL TOP */
#scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(28,61,110,.25);
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  color: var(--accent);
  font-size: .9rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, border-color .2s, box-shadow .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(28,61,110,.18); }

/* THEME TOGGLE */
#theme-toggle {
  position: fixed;
  bottom: 118px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(28,61,110,.25);
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: transform .2s, box-shadow .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  title: "Cambia tema";
}
#theme-toggle:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(28,61,110,.18); }
[data-theme="warm"] #theme-toggle { background: rgba(199,155,118,.96); border-color: rgba(60,30,10,.3); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollSlide {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ── HERO PHOTO BACKGROUND ── */
.hero-photo {
  position: relative;
  overflow: visible;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 15%;
  /* dottoressa: centrata sul viso - sovrascritta da inline style */
  filter: grayscale(.10) brightness(1.08) saturate(.90) contrast(1.00);
  display: block;
  border-radius: 0;
}
/* duotone leggerissimo */
.hero-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,61,110,.05) 0%, rgba(207,165,130,.03) 100%);
  mix-blend-mode: multiply;
}
/* gradiente a DESTRA per il testo – destra scura, sinistra aperta */
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to left,
      rgba(12,25,45,.7) 0%,
      rgba(12,25,45,.52) 45%,
      rgba(12,25,45,.24) 72%,
      rgba(12,25,45,.06) 90%
    ),
    linear-gradient(
      to bottom,
      rgba(12,25,45,.1) 0%,
      transparent 20%,
      transparent 60%,
      rgba(12,25,45,.42) 100%
    ),
    rgba(10,20,35,.1);
  pointer-events: none;
}
.hero-photo .page-hero-inner {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: clamp(320px, 56vw, 640px);
  text-align: left;
  padding: 0 5%;
}
/* Override text colors inside photo hero for legibility */
.hero-photo .hero-eyebrow { color: #1a5ca8; }
.hero-photo .hero-eyebrow::before { background: #1a5ca8; }
.hero-photo h1 { color: #fff; }
.hero-photo h1 em { color: #1a5ca8; font-size: 1.12em; letter-spacing: -.02em; }
.hero-photo h1 span { color: #d4a96a; }
.hero-photo p { color: rgba(255,255,255,.78); }
.hero-photo .btn-primary { background: #1c3d6e; color: #fff; }
.hero-photo .btn-primary:hover { background: #2c72b8; }


/* ── HERO FULLSCREEN ── */
/* header è fixed: non toglie spazio al flusso, hero = 100svh pieno */
.hero-fullscreen {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  overflow: visible;
}
@media (max-width: 900px) {
  .hero-fullscreen {
    height: auto;
    min-height: 55svh;
    align-items: center;
  }
}
.hero-fullscreen .page-hero-inner {
  padding-top: clamp(110px, 14vh, 150px);
  padding-bottom: clamp(70px, 9vh, 100px);
  box-sizing: border-box;
  width: 100%;
}

/* Subtle shadow only on h1 for readability */
.hero-photo h1 { text-shadow: 0 1px 12px rgba(0,0,0,.18); }


/* ── RESPONSIVE IMAGE SAFETY ── */
@media (max-width: 820px) {
  .img-wrap img, .content-img { object-position: center center; }
  .full-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 460px;
}
  .full-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(.25) brightness(.95) saturate(.85) contrast(1.03);
  border-radius: 0;
}
}
@media (max-width: 560px) {
  .img-wrap img, .content-img { object-position: center center; min-height: 200px; }
  .full-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 460px;
}
}

/* Chi siamo – foto banner in fondo: cornice ridotta, più immagine */
.chi-siamo-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 0;             /* full width, nessuna cornice */
}
.chi-siamo-banner img {
  width: 100%;
  height: 520px;         /* spazio generoso */
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: grayscale(.25) brightness(.95) saturate(.85) contrast(1.03);
}
.chi-siamo-banner::after {
  display: none;
}
@media (max-width: 680px) {
  .chi-siamo-banner img { height: 320px; }
}

/* ── FOOTER SOCIAL & RIGHT BLOCK ── */
footer {
  flex-wrap: wrap;
  row-gap: 16px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(28,61,110,.35);
  color: var(--accent);
  text-decoration: none;
  transition: background .2s, transform .15s, border-color .2s;
}
.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.social-icon:hover svg { filter: brightness(10); }
@media (max-width: 600px) {
  .footer-right { align-items: flex-start; }
}


/* ── ORL HERO con foto sfondo ── */
.orl-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 56vh;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .orl-hero { min-height: 48vh; }
}
@media (max-width: 480px) {
  .orl-hero { min-height: 44vh; }
}
.orl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orl-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(.15) brightness(1.05) saturate(.90) contrast(1.00);
  display: block;
}
/* gradiente leggero per leggibilità testo */
.orl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to left,
      rgba(12,25,45,.72) 0%,
      rgba(12,25,45,.40) 38%,
      rgba(12,25,45,.10) 62%,
      transparent 82%
    ),
    linear-gradient(
      to bottom,
      rgba(12,25,45,.05) 0%,
      transparent 20%,
      transparent 75%,
      rgba(12,25,45,.35) 100%
    );
  pointer-events: none;
}
.orl-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: 5%;
  padding-right: 5%;
  max-width: 580px;
  margin-left: auto;
}
.orl-hero .hero-eyebrow { color: #1a5ca8; }
.orl-hero .hero-eyebrow::before { background: #1a5ca8; }
.orl-hero h1 { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.2); }
.orl-hero h1 em { color: #5b9fd4; font-style: italic; }
.orl-hero p { color: rgba(255,255,255,.85); }

/* Homepage chi-siamo section: sfondo più caldo, meno pesante */
.section.alt { background: var(--bg2); }
.section-alt-light { background: color-mix(in srgb, var(--bg) 70%, var(--bg3) 30%); }

/* Hero: parola eccellenza — più grande, più leggibile */
.hero-photo h1 em {
  color: #1a5ca8;
  font-size: 1.08em;
  letter-spacing: -.01em;
}

/* Chi siamo riquadro info sovrapposto alla foto — stile hero */
.photo-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(12,25,45,.72);
  -webkit-
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 18px 20px;
  z-index: 3;
}
.photo-overlay-card .eyebrow {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5b9fd4;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-overlay-card .eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #5b9fd4;
  flex-shrink: 0;
}
.photo-overlay-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.photo-overlay-card p {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

/* ── PHOTO OVERLAY CARD (stile hero) ── */
.photo-overlay-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 24px;
  background: linear-gradient(to top, rgba(12,25,45,.88) 0%, rgba(12,25,45,.55) 55%, transparent 100%);
  border-radius: 0 0 4px 4px;
  z-index: 3;
}
.photo-overlay-card .eyebrow {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a5ca8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-overlay-card .eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #1a5ca8;
  flex-shrink: 0;
}
.photo-overlay-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.photo-overlay-card p {
  font-size: .78rem;
  color: rgba(255,255,255,.68);
  letter-spacing: .04em;
}

/* ── HERO: eccellenza più visibile ── */
.hero-photo h1 em {
  color: #1a5ca8;
  font-style: italic;
  text-shadow: 0 0 30px rgba(26,92,168,.4);
}

/* ── ENAC badge: stesso blu logo ── */
.hero-enac-num { color: #1a5ca8 !important; }


/* ── PHOTO OVERLAY CARD — stile hero ── */
.photo-overlay-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 24px;
  background: linear-gradient(to top, rgba(12,25,45,.82) 0%, rgba(12,25,45,.45) 55%, transparent 100%);
  color: #fff;
  z-index: 3;
}
.photo-overlay-card .eyebrow {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5b9fd4;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-overlay-card .eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #5b9fd4;
}
.photo-overlay-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}
.photo-overlay-card p {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  letter-spacing: .04em;
}

/* ── FULL-IMG-WRAP — originali studio (desk, emotional_area) ── */
.full-img-wrap-studio {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 480px;
}
.full-img-wrap-studio img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(.25) brightness(.95) saturate(.85) contrast(1.03);
  border-radius: 0;
}
.full-img-wrap-studio::after {
  display: none;
}
@media (max-width: 680px) {
  .full-img-wrap-studio { height: 280px; }
}


/* ── FOTO CON OVERLAY TESTO STILE HERO (chi siamo homepage) ── */
.photo-text-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4/3;
}
.photo-text-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(.25) brightness(.95) saturate(.85) contrast(1.03);
}
/* gradiente scuro in basso per il testo sovrapposto */
.photo-text-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 35%, rgba(12,25,45,.92) 100%),
    linear-gradient(to right, rgba(12,25,45,.10) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}
/* duotone leggerissimo */
.photo-text-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,61,110,.07) 0%, rgba(207,165,130,.04) 100%);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}
.photo-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 24px;
  z-index: 3;
}
.photo-overlay-text .ot-eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #5b9fd4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.photo-overlay-text .ot-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #5b9fd4;
}
.photo-overlay-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.photo-overlay-text p {
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── CENTRAMENTO UNIVERSALE FOTO ── */
.img-wrap img,
.full-img-wrap img,
.photo-text-wrap img,
.full-img-wrap-studio img,
.orl-hero-bg img,
.chi-siamo-banner img {
  object-position: center center;
}
/* Solo le eccezioni esplicite */
.orl-hero-bg img     { object-position: center 40%; }    /* ORL: strumenti centrati-alto */
.chi-siamo-banner img{ object-position: center 35%; }    /* desk: inquadratura alta */

/* Responsive: mantiene centro su tutti i breakpoint */
@media (max-width: 1024px) {
  .img-wrap img,
  .full-img-wrap img,
  .photo-text-wrap img { object-position: center center; }
}
@media (max-width: 680px) {
  .img-wrap img,
  .full-img-wrap img,
  .photo-text-wrap img { object-position: center center; }
  /* Dottoressa: su mobile centra il viso */
  /* Testo hero su mobile: torna a sinistra full width */
  .hero-photo .page-hero-inner {
    margin-left: 0;
    max-width: 100%;
    padding: 0 5%;
  }
  /* Gradiente mobile: uniforme per leggibilità */
  .hero-photo::before {
    background: rgba(12,25,45,.52);
  }
}

/* ── STRIP BADGE su mobile: mostra tutto, scroll libero ── */

/* ── SEZIONE CHI SIAMO HOMEPAGE su mobile ── */


/* ── HERO FULLSCREEN padding top su mobile ── */
@media (max-width: 680px) {
  .hero-fullscreen .page-hero-inner {
    padding-top: 120px;
    padding-bottom: 40px;
  }
  .hero-photo h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    text-shadow: 0 2px 20px rgba(0,0,0,.45);
  }
  .hero-photo p {
    font-size: .88rem;
    color: rgba(255,255,255,.92) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
  }
  .hero-photo .hero-eyebrow {
    color: #5baee0 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
  }
  .hero-photo .hero-eyebrow-sub {
    color: #5baee0 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
  }
  .hero-photo h1 em { text-shadow: 0 2px 20px rgba(0,0,0,.45); }
}

/* ── SEZIONE CHI SIAMO HOMEPAGE: foto a tutta altezza (desktop) ── */
@media (min-width: 901px) {
  .section.section-chisiamo {
    padding-top: 0;
    padding-bottom: 0;
  }
  .section-chisiamo .photo-text-wrap {
    aspect-ratio: unset;
    align-self: stretch;
  }
  .section-chisiamo > div:not(.photo-text-wrap) {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* ── SEZIONE CHI SIAMO HOMEPAGE RESPONSIVE ── */
@media (max-width: 820px) {
  .section-chisiamo {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .section-chisiamo .photo-text-wrap {
    aspect-ratio: 16/9;
  }
}

/* ── MOBILE: img-wrap altezza minima ── */
@media (max-width: 820px) {
  .img-wrap { min-height: 240px; }
  .img-wrap img { height: 100%; min-height: 240px; }
  .two-col { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* ── MOBILE: testo servizi più leggibile ── */
@media (max-width: 680px) {
  .svc-card { padding: 28px 20px; }
  .svc-name { font-size: 1.15rem; }
  .body-text { font-size: .88rem; }
  .section { padding: 48px 5%; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .cta-band { padding: 48px 5%; }
  .cta-band h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* ── FOOTER RESPONSIVE ── */
@media (max-width: 820px) {
  footer {
    flex-wrap: wrap;
    gap: 20px 32px;
  }
  .footer-logo-link { width: 100%; }
  .footer-logo-img { height: 60px !important; }
}
@media (max-width: 560px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 5%;
  }
  .footer-logo-img { height: 52px !important; }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }
  .footer-right {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-copy { font-size: .7rem; }
}

/* ── MOBILE: contact grid ── */
@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .map-wrap iframe { height: 240px; }
}

/* ── MOBILE: creds-grid ── */
@media (max-width: 480px) {
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .cred { padding: 14px; }
  .cred-val { font-size: 1.2rem; }
}

/* ── MOBILE: ORL hero testo ── */
@media (max-width: 680px) {
  .orl-hero-inner {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding-top: 120px;
    padding-bottom: 48px;
  }
  .orl-hero::before {
    background:
      linear-gradient(to bottom,
        rgba(12,25,45,.70) 0%,
        rgba(12,25,45,.55) 40%,
        rgba(12,25,45,.65) 100%
      ) !important;
  }
}

/* ── MOBILE: nascondi badge ENAC e scroll su piccolo schermo ── */
@media (max-width: 680px) {
  .hero-enac-num { display: none; }
}
@media (max-width: 900px) {
  /* Badge ENAC più piccolo su tablet */
  .hero-fullscreen div[style*="width:140px"] {
    width: 100px !important;
    height: 100px !important;
  }
}

/* ── NAVIGAZIONE RESPONSIVE — regola definitiva ── */
@media (max-width: 900px) {
  header nav { display: none !important; }
  .hamburger { display: flex !important; }
}

/* ── FOOTER: link torna-su solo mobile ── */
.footer-home-mobile {
  display: none;
  color: var(--accent);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(28,61,110,.3);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background .2s;
}
.footer-home-mobile:hover { background: rgba(28,61,110,.1); }
@media (max-width: 900px) {
  .footer-home-mobile { display: inline-flex; align-items: center; gap: 6px; }
}

/* ── PHOTO-TEXT-WRAP: altezza colonna ── */
.photo-text-wrap { height: 100%; min-height: 420px; aspect-ratio: unset !important; }
@media (max-width: 820px) { .photo-text-wrap { height: 360px; min-height: unset; } }
@media (max-width: 480px)  { .photo-text-wrap { height: 300px; } }
.photo-text-wrap img { height: 100% !important; width: 100% !important; object-fit: cover !important; object-position: center center !important; }

/* ── MOBILE: rimuovi elementi decorativi hero che causano spazio vuoto ── */
@media (max-width: 900px) {
  /* Badge ENAC circolare */
  .hero-fullscreen > div[style*="border-radius:50%"] { display: none !important; }
  /* Scroll indicator */
  .hero-fullscreen > div[style*="bottom:36px"] { display: none !important; }
}

/* ── HYPHENATION su mobile ── */
@media (max-width: 680px) {
  .body-text, .page-hero p, .section-title, h1, h2, h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* ── ORL hero: titolo su una riga, no word-break ── */
.orl-hero-inner h1 {
  white-space: nowrap;
  overflow: visible;
}
@media (max-width: 480px) {
  .orl-hero-inner h1 { white-space: normal; font-size: 1.5rem !important; }
}

/* ── HERO CONTENT BLOCK responsive ── */
@media (max-width: 680px) {
  .hero-content-block .btn-primary {
    padding: 11px 20px;
    font-size: .78rem;
  }
  .hero-fullscreen .page-hero-inner {
    padding-top: clamp(88px, 14vh, 120px);
    padding-bottom: clamp(24px, 5vh, 48px);
  }
}
@media (max-width: 400px) {
  .hero-fullscreen .page-hero-inner {
    padding-top: 100px;
  }
}

/* ── HERO MOBILE: testo + foto proporzionati ── */
@media (max-width: 680px) {
  /* Foto: segue l'altezza della sezione hero */
  .hero-photo-bg img {
    height: 100% !important;
    min-height: unset !important;
  }
  /* Blocco testo */
  .hero-fullscreen .page-hero-inner {
    padding-top: 160px !important;
    padding-bottom: 24px !important;
    padding-left: 6% !important;
    padding-right: 6% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
  /* Eyebrow */
  .hero-photo .hero-eyebrow {
    font-size: .66rem !important;
    margin-bottom: 4px !important;
  }
  /* Titolo */
  .hero-photo h1 {
    font-size: clamp(1.45rem, 6vw, 1.8rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
  }
  /* Paragrafo */
  .hero-photo p {
    font-size: .86rem !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
  }
  /* Bottoni */
  .hero-content-block > div { gap: 8px !important; flex-wrap: wrap !important; }
  .hero-content-block .btn-primary {
    padding: 8px 16px !important;
    font-size: .76rem !important;
  }
}
@media (max-width: 400px) {
  .hero-photo h1 { font-size: 1.3rem !important; }
  .hero-fullscreen .page-hero-inner { padding-top: 72px !important; }
  .hero-fullscreen { height: auto !important; min-height: 52svh !important; }
}

/* ── LOGO RIDOTTO SU MOBILE ── */
@media (max-width: 900px) {
  .logo-img { height: 70px !important; }
  header { height: 84px !important; }
  .mobile-menu { top: 84px !important; }
}
@media (max-width: 480px) {
  .logo-img { height: 58px !important; }
  header { height: 70px !important; }
  .mobile-menu { top: 70px !important; }
}

/* ── HERO MOBILE: testo bianco ── */
@media (max-width: 900px) {
  .hero-photo .hero-eyebrow { color: #5baee0 !important; text-shadow: 0 1px 4px rgba(0,0,0,.8) !important; }
  .hero-photo .hero-eyebrow::before { background: #5baee0 !important; }
  .hero-photo h1 { color: #fff !important; text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.6) !important; }
  .hero-photo h1 em { color: #5baee0 !important; }
  .hero-photo h1 span { color: #fff !important; }
  .hero-photo p { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.9) !important; }
  .hero-photo .btn-primary { background: rgba(28,61,110,.75) !important; color: #fff !important; border: none !important; }
}

/* ── HERO MOBILE: H1 e p a sinistra, bottoni a destra ── */
@media (max-width: 900px) {
  .hero-fullscreen .page-hero-inner {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }
  .hero-photo h1 br { display: none; }
  .hero-photo p { text-align: left !important; }
  .hero-content-block > div {
    justify-content: flex-end !important;
  }
}

/* ── MOBILE: cost-box come blocco (evita allineamento inline anomalo) ── */
@media (max-width: 820px) {
  .cost-box {
    display: block;
  }
}

/* ── MOBILE: padding sezioni ridotto ── */
@media (max-width: 900px) {
  .section { padding: 36px 5% !important; }
  .section.alt { padding: 36px 5% !important; }
  .cta-band { padding: 36px 5% !important; }
  .section-chisiamo { padding: 32px 5% !important; gap: 24px !important; }
  /* Rimuove spazio extra tra griglia servizi e sezione successiva */
  #servizi { padding-bottom: 24px !important; }
  /* Sezione chi siamo homepage: meno spazio */
  .section-chisiamo { margin: 0 !important; }
  /* Strip badge: padding ridotto */
  div[style*="padding:18px 5%"] { padding: 12px 5% !important; }
}
@media (max-width: 680px) {
  .section { padding: 28px 5% !important; }
  .cta-band { padding: 28px 5% !important; }
  #servizi { padding-bottom: 16px !important; }
}

/* ── HEADER TELEFONO ── */
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 6px 12px;
  border: 1px solid rgba(28,61,110,.3);
  border-radius: 4px;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}
.header-phone:hover { background: rgba(28,61,110,.08); border-color: var(--accent); }
.header-phone svg { flex-shrink: 0; }
body.hero-page .header-phone { color: #fff; border-color: rgba(255,255,255,.3); }
body.hero-page .header-phone:hover { background: rgba(255,255,255,.1); }
body.hero-page.scrolled .header-phone { color: var(--accent); border-color: rgba(28,61,110,.3); }
@media (max-width: 900px) {
  .header-phone span { display: none; }
  .header-phone { padding: 6px 8px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; }
}



/* ── CHI SIAMO HERO ACCORPATO ── */
.chisiamo-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.chisiamo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.chisiamo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(.25) brightness(.75) contrast(1.05);
  display: block;
}
.chisiamo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(12,25,45,.88) 0%, rgba(12,25,45,.65) 45%, rgba(12,25,45,.20) 75%, transparent 100%),
    linear-gradient(to bottom, rgba(12,25,45,.5) 0%, transparent 28%, transparent 60%, rgba(12,25,45,.6) 100%);
  pointer-events: none;
}
.chisiamo-inner {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 80px 5% 60px;
  max-width: 720px;
  margin-left: auto;
}
.chisiamo-creds {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  overflow: hidden;
  max-width: 460px;
}
.chisiamo-cred {
  background: rgba(12,25,45,.45);
  padding: 14px 16px;
}
.chisiamo-cred-val {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: #5baee0;
  line-height: 1;
  margin-bottom: 3px;
}
.chisiamo-cred-label {
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
@media (max-width: 680px) {
  .chisiamo-hero { min-height: 50vh; }
  .chisiamo-inner { padding: 100px 5% 40px; max-width: 100%; }
  .chisiamo-hero::before {
    background: rgba(12,25,45,.62);
  }
  .chisiamo-creds { grid-template-columns: repeat(2,1fr); max-width: 100%; }
}

/* ── ORL SPOTLIGHT HOMEPAGE ── */
.orl-spotlight {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.orl-spotlight-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orl-spotlight-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(.2) brightness(.72) contrast(1.05);
  display: block;
}
.orl-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(12,25,45,.92) 0%,
      rgba(12,25,45,.75) 40%,
      rgba(12,25,45,.30) 70%,
      transparent 100%
    );
  pointer-events: none;
}
.orl-spotlight-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 5%;
}
.orl-spotlight-content { max-width: 560px; }
.orl-spotlight-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.5rem;
}
.orl-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .83rem;
  color: rgba(255,255,255,.82);
}
.orl-point svg { flex-shrink: 0; }
@media (max-width: 680px) {
  .orl-spotlight { min-height: 420px; }
  .orl-spotlight::before { background: rgba(12,25,45,.72); }
  .orl-spotlight-points { grid-template-columns: 1fr; gap: 10px; }
  .orl-spotlight-content { max-width: 100%; }
}

/* ── ORL CARD IN RISALTO ── */
.svc-card-featured {
  background: var(--bg3) !important;
  border-top: 2px solid #1a5ca8 !important;
}
.svc-card-featured .svc-num { color: #1a5ca8 !important; }
.svc-card-featured .svc-name { color: var(--accent) !important; }
.svc-card-featured:hover { background: #1a5ca8 !important; }
.svc-card-featured:hover .svc-name,
.svc-card-featured:hover .svc-desc,
.svc-card-featured:hover .svc-num,
.svc-card-featured:hover .svc-arr { color: #fff !important; }

/* scroll-indicator-hide rimosso — ora usa .scroll-chevron */

/* ── SCROLL CHEVRON ── */
.scroll-chevron {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 1;
  text-decoration: none;
  z-index: 10;
  transition: opacity .4s ease;
  height: 44px;
  overflow: hidden;
}
.scroll-chevron.hidden {
  opacity: 0 !important;
  pointer-events: none;
}
.scroll-chevron svg {
  animation: chevronBounce 1.8s ease-in-out infinite;
}
.scroll-chevron svg:last-child {
  animation-delay: .2s;
}
.scroll-chevron:hover svg { stroke: #0f3d7a; }
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%       { transform: translateY(5px); opacity: 1; }
}
@media (max-width: 900px) {
  .scroll-chevron { bottom: 16px; }
}

/* ── STRIP BADGE CON FRECCE HOVER ── */
.strip-wrapper {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  display: flex;
  align-items: center;
}
.strip-track {
  display: flex;
  align-items: center;
  gap: 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 18px 40px;
  flex: 1;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip-track .strip-item:last-child { padding-right: 40px; }
.strip-track::-webkit-scrollbar { display: none; }
.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .18s;
}
a.strip-item:hover { color: var(--accent); }
a.strip-item:hover .strip-dot { background: var(--accent2); }
.strip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.strip-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 36px;
  border: none;
  cursor: pointer;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
  pointer-events: none;
}
.strip-wrapper:hover .strip-arrow { pointer-events: auto; }
.strip-prev { left: 0; background: linear-gradient(to right, var(--bg2) 60%, transparent); }
.strip-next { right: 0; background: linear-gradient(to left, var(--bg2) 60%, transparent); }
.strip-wrapper:hover .strip-arrow { opacity: 1; }
.strip-arrow:hover { opacity: 1 !important; color: var(--white); }

/* ── STRIP FADE LATERALE ── */
.strip-fade-left, .strip-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.strip-fade-left  { left: 0;  background: linear-gradient(to right, var(--bg2), transparent); }
.strip-fade-right { right: 0; background: linear-gradient(to left,  var(--bg2), transparent); }
.strip-wrapper:hover .strip-fade-left,
.strip-wrapper:hover .strip-fade-right { opacity: 1; }

/* ── STRIP: scroll orizzontale funzionante su tutti i dispositivi ── */
.strip-wrapper {
  overflow: hidden;
}
.strip-track {
  overflow-x: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain;
}
/* Su mobile piccolo: assicura che il contenuto non venga tagliato */
@media (max-width: 520px) {
  .strip-track {
    overflow-x: scroll !important;
    padding-right: 5% !important;
    width: 100%;
  }
}

/* ── HERO: tablet 681-900px ── */
@media (min-width: 681px) and (max-width: 900px) {
  .hero-photo .page-hero-inner {
    margin-left: 0;
    max-width: 100%;
    padding: 120px 6% 48px !important;
  }
  .hero-photo::before {
    background: rgba(12,25,45,.58);
  }
  .hero-photo h1 { font-size: clamp(2.2rem, 5vw, 3.2rem) !important; }
  .hero-photo p { font-size: .9rem !important; }
  .hero-photo .hero-eyebrow { color: #5baee0 !important; }
}

/* ── PAGINE INTERNE: page-hero gap 680-900px ── */
@media (min-width: 681px) and (max-width: 900px) {
  .two-col { grid-template-columns: 1fr !important; gap: 32px !important; }
  .img-wrap { min-height: 320px; align-self: auto; }
}

/* ── GRIGLIA SERVIZI: 2 col su tablet ── */
@media (min-width: 681px) and (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── ORARI CHI SIAMO: 2 col su tablet ── */
@media (min-width: 681px) and (max-width: 900px) {
  .orari-section div[style*="repeat(auto-fit"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── COOKIE BANNER: in basso su mobile ── */
@media (max-width: 680px) {
  #cookie-banner {
    bottom: 0 !important;
    top: auto !important;
    border-top: 1px solid rgba(77,159,212,.25);
    border-bottom: none;
  }
}

/* ── RECENSIONI GOOGLE + FACEBOOK ── */
.reviews-rating-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 1.5rem;
  padding: 14px 20px;
  background: var(--bg3);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.reviews-source {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviews-source svg { opacity: .55; }
.reviews-score {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.reviews-stars { color: var(--accent); font-size: .8rem; letter-spacing: 1px; opacity: .7; }
.reviews-count { font-size: .68rem; color: var(--dim); margin-top: 2px; }
.reviews-divider { width: 1px; height: 36px; background: var(--line); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.review-card {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28,61,110,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}
.review-name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  color: var(--dim);
  margin-top: 2px;
}
.review-meta svg { opacity: .5; }
.review-stars {
  color: var(--accent);
  font-size: .72rem;
  margin-left: auto;
  opacity: .7;
  flex-shrink: 0;
}
.review-text {
  font-size: .78rem;
  color: var(--off);
  line-height: 1.55;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 820px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-divider { width: 100%; height: 1px; }
}

/* ── SCROLLBAR CUSTOM — toni hero navy ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(12,25,45,.08); }
::-webkit-scrollbar-thumb {
  background: rgba(12,25,45,.45);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(12,25,45,.75); }
* { scrollbar-width: thin; scrollbar-color: rgba(12,25,45,.45) rgba(12,25,45,.08); }

/* ── SERVIZI: card con immagine di fondo ── */
.svc-card {
  min-height: 320px;
  isolation: isolate;
}
/* Layer immagine separato per consentire zoom via transform */
.svc-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transition: transform .55s ease;
}
.svc-card:hover .svc-img { transform: scale(1.08); }
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12,25,45,.10) 0%,
    rgba(12,25,45,.24) 42%,
    rgba(12,25,45,.88) 100%
  );
  z-index: -1;
  transition: background .3s;
}
.svc-card:hover::after {
  background: linear-gradient(180deg,
    rgba(12,25,45,.15) 0%,
    rgba(12,25,45,.30) 42%,
    rgba(12,25,45,.92) 100%
  );
}
.svc-card .svc-num,
.svc-card .svc-name,
.svc-card .svc-desc,
.svc-card .svc-arr {
  color: #fff;
  position: relative;
  z-index: 1;
}
.svc-card .svc-desc { color: rgba(255,255,255,.82); }
.svc-card .svc-icon {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.4) !important;
  position: relative;
  z-index: 1;
}
.svc-card .svc-icon svg { stroke: #fff !important; }
.svc-card::before { z-index: 1; }

/* card "in risalto" (ORL) mantiene leggibilità senza override speciali */
.svc-card-featured { border-top: 2px solid #5baee0 !important; }
.svc-card-featured .svc-num { color: #5baee0 !important; }
.svc-card-featured:hover { background-color: transparent !important; }
.svc-card-featured:hover .svc-name,
.svc-card-featured:hover .svc-desc,
.svc-card-featured:hover .svc-num,
.svc-card-featured:hover .svc-arr { color: #fff !important; }

@media (max-width: 680px) {
  .svc-card { min-height: 260px; }
}

/* ── FOOTER AMPLIATO (3 colonne) ── */
.footer-pav {
  border-top: 1px solid var(--line);
  background: var(--bg2);
}
.footer-pav-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 0.8fr;
  border-bottom: 1px solid var(--line);
}
.footer-pav-col {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}
.footer-pav-col:last-child { border-right: none; }
.footer-col-head {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  font-family: var(--sans);
}
.footer-col-text {
  font-size: .8rem;
  color: var(--off);
  line-height: 1.85;
}
.footer-col-link {
  display: block;
  font-size: .8rem;
  color: var(--off);
  text-decoration: none;
  line-height: 2.1;
  transition: color .15s;
}
.footer-col-link:hover { color: var(--accent); }
.footer-pav-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px 32px;
}
.footer-bottom-right {
  text-align: left;
  font-size: .72rem;
  color: var(--off);
  line-height: 1.65;
}
.footer-byline {
  font-size: .65rem;
  color: var(--dim);
}
@media (max-width: 820px) {
  .footer-pav-cols { grid-template-columns: 1fr 1fr; }
  .footer-pav-col { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 5%; }
  .footer-pav-col:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer-pav-cols > .footer-pav-col:nth-last-child(-n+2) { border-right: none; }
  .footer-pav-bottom { padding: 14px 5%; justify-content: flex-start; }
  .footer-bottom-right { text-align: left; }
}
@media (max-width: 560px) {
  .footer-pav-cols { grid-template-columns: 1fr; }
  .footer-pav-col { border-right: none; padding: 20px 5%; }
  .footer-pav-cols > .footer-pav-col:nth-child(odd) { border-right: none; }
}
