/* ============================================================
   MAGNA GRAECIA — home.css v6.1 (2026-09-07)
   Design system: navy · sabbia · oro · terracotta
   Zero dipendenze esterne. Mobile-first. WCAG 2.1 AA.
   ============================================================ */

:root {
  --navy: #0B1826;
  --navy-2: #0F2233;
  --navy-3: #16304A;
  --sand: #EFE6D3;
  --sand-2: #F7F1E4;
  --sand-3: #FBF8F1;
  --gold: #C9A661;
  --gold-2: #E2C687;
  --gold-3: #8A6D33;
  --terra: #A8432D;
  --olive: #5A6244;
  --ink: #0B1826;
  --ink-2: #3C4756;
  --ink-3: #5E6875;
  --line: rgba(11, 24, 38, .12);
  --line-light: rgba(239, 230, 211, .16);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: min(1240px, calc(100% - 2 * clamp(20px, 5vw, 64px)));
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
  --dock-h: 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  color: var(--ink); background: var(--sand-2);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Focus sempre visibile (accessibilità) */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.nav :focus-visible, .foot :focus-visible, .method :focus-visible { outline-color: var(--gold-2); }

.container { width: var(--container); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; z-index: 999; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 1.1rem; }
.h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); max-width: 18ch; margin-bottom: 1.2rem; text-wrap: balance; }
.lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-2); max-width: 58ch; line-height: 1.7; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(201,166,97,.7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { color: var(--sand); border: 1px solid var(--line-light); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--dark { background: var(--navy); color: var(--sand); }
.btn--dark:hover { background: var(--navy-3); }
.btn--sm { padding: .7rem 1.2rem; font-size: .72rem; }
.btn--wide { grid-column: 1 / -1; justify-self: start; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================ NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); }
/* Lo sfondo sfocato vive su un pseudo-elemento: un backdrop-filter sull'header
   diventerebbe containing block del menu mobile (fixed) e lo schiaccerebbe. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(11,24,38,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light); opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { position: relative; z-index: 1; width: var(--container); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: flex; align-items: center; gap: .7rem; color: var(--sand); font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em; }
.nav__brand em { color: var(--gold); }
.nav__word { white-space: nowrap; }

/* Marchio animato in barra: anelli che ruotano, anfora del logo che oscilla */
.brandmark { position: relative; width: 44px; height: 44px; flex: none; display: block; }
.brandmark > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.brandmark__ring { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 42 22; opacity: .85; transform-origin: 50% 50%; animation: spin 18s linear infinite; }
.brandmark__ring2 { fill: none; stroke: var(--gold-3); stroke-width: 2; stroke-dasharray: 14 30; opacity: .75; transform-origin: 50% 50%; animation: spin 26s linear infinite reverse; }
.brandmark__amph { position: absolute; left: 30%; top: 18%; width: 40%; height: 64%; inset: auto; fill: var(--sand); transform-origin: 50% 90%; animation: tilt 6s ease-in-out infinite; transition: fill .3s; }
.nav__brand:hover .brandmark__amph { fill: var(--gold-2); animation-duration: 1.6s; }
.nav__brand:hover .brandmark__ring { stroke-dasharray: 58 8; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tilt { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.nav__links { display: none; gap: 1.6rem; font-size: .84rem; font-weight: 500; color: var(--sand); }
.nav__links a { opacity: .8; transition: opacity .2s, color .2s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.nav__links a:hover { opacity: 1; color: var(--gold-2); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__cta { display: none; }
.lang { display: flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: rgba(239,230,211,.5); }
.lang__btn { padding: .3rem .35rem; color: rgba(239,230,211,.6); transition: color .2s; }
.lang__btn:hover, .lang__btn.is-active { color: var(--gold); }
.burger { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 24px; height: 2px; background: var(--sand); border-radius: 2px; transition: transform .35s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); background: var(--gold); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); background: var(--gold); }

@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 999px) {
  .nav__links {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
    position: fixed; inset: 0; background: var(--navy); font-size: 1.7rem; font-family: var(--serif);
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: 0;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
}

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--navy); color: var(--sand); overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 3rem) 0 6rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(201,166,97,.30), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(168,67,45,.22), transparent 70%),
    radial-gradient(45% 55% at 60% 90%, rgba(90,98,68,.28), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, var(--navy-2), var(--navy) 80%);
  filter: blur(30px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06) rotate(2deg); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02) rotate(-2deg); }
}
.hero__grain {
  position: absolute; inset: 0; opacity: .32; mix-blend-mode: soft-light; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

/* ---------- Logo animato: l'anfora del marchio si disegna e si riempie ---------- */
.hero__logo {
  position: absolute; z-index: -1; right: clamp(-2%, 5vw, 9%); top: 50%;
  height: min(78vh, 700px); aspect-ratio: 300 / 681;
  transform: translateY(-50%); pointer-events: none; will-change: transform;
}
.amph { width: 100%; height: 100%; overflow: visible; }
.amph__outline {
  fill: none; stroke: url(#gradGold); stroke-width: 2.2; stroke-linejoin: round;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: amphDraw 3.4s var(--ease) .25s forwards;
  filter: drop-shadow(0 0 18px rgba(201,166,97,.35));
}
@keyframes amphDraw { to { stroke-dashoffset: 0; } }
.amph__bed { fill: rgba(201,166,97,.05); }
/* Il liquido sale dentro la sagoma dopo che il contorno è stato disegnato */
.amph__liquid { transform: translateY(700px); animation: amphFill 3.4s var(--ease) 1.5s forwards; }
@keyframes amphFill { to { transform: translateY(250px); } }
.amph__wave { fill: url(#gradWine); }
.amph__wave--back { opacity: .5; animation: waveA 9s linear infinite; }
.amph__wave--front { opacity: .78; animation: waveB 6.5s linear infinite; }
@keyframes waveA { from { transform: translateX(0); } to { transform: translateX(300px); } }
@keyframes waveB { from { transform: translateX(-300px); } to { transform: translateX(0); } }
.amph__shine { opacity: 0; animation: shine 7s ease-in-out 3s infinite; }
@keyframes shine {
  0%, 68%, 100% { transform: translateX(0); opacity: 0; }
  76% { opacity: .22; }
  92% { transform: translateX(500px); opacity: 0; }
}
@media (max-width: 900px) { .hero__logo { right: -26%; height: 68vh; opacity: .38; } }
@media (max-width: 600px) { .hero__logo { right: -38%; height: 58vh; opacity: .3; } }

.hero__inner { width: var(--container); margin-inline: auto; max-width: 1240px; position: relative; }
.hero .eyebrow { color: var(--gold); }
.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: 1; letter-spacing: -.025em; max-width: 17ch;
  margin-bottom: 1.6rem; font-weight: 500;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span, .hero__title .line > em { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > em { animation-delay: .12s; color: var(--gold); font-weight: 400; }
@keyframes rise { to { transform: translateY(0); } }
/* Frase di posizionamento sotto il titolo: piu' marcata della descrizione. */
.hero__claim {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem); font-weight: 600; line-height: 1.35;
  color: var(--sand); max-width: 42ch; margin-bottom: .9rem; text-wrap: pretty;
}
.hero__lede { font-size: clamp(.98rem, 1.6vw, 1.12rem); color: rgba(239,230,211,.8); max-width: 58ch; line-height: 1.7; margin-bottom: 2.2rem; }
.hero__lede strong { color: var(--gold-2); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-bottom: 3.2rem; }
.linkarrow {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 0;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(239,230,211,.85); border-bottom: 1px solid rgba(239,230,211,.28);
  transition: color .25s, border-color .25s, gap .3s var(--ease);
}
.linkarrow:hover { color: var(--gold-2); border-color: var(--gold); gap: .8rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; max-width: 720px;
  border-top: 1px solid var(--line-light); padding-top: 1.6rem;
}
@media (min-width: 700px) { .hero__stats { grid-template-columns: repeat(4, auto); } }
.hero__stats li { display: flex; flex-direction: column; gap: .15rem; }
.hero__stats strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold-2); line-height: 1; }
.hero__stats span { font-size: .78rem; color: rgba(239,230,211,.7); letter-spacing: .04em; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .62rem; letter-spacing: .35em; text-transform: uppercase; color: rgba(239,230,211,.5);
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: pulse 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes pulse { 0%,100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ============================================================ AZIONI RAPIDE */
.quick {
  position: relative; z-index: 5; width: var(--container); margin: -3.2rem auto 0;
  display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11,24,38,.5), 0 0 0 1px var(--line);
}
@media (min-width: 720px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick__item { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.5rem; background: var(--sand-3); transition: background .3s; }
.quick__item:hover { background: #fff; }
.quick__item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quick__item span { display: flex; flex-direction: column; line-height: 1.25; }
.quick__item b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.quick__item small { font-size: .76rem; color: var(--ink-3); }
.quick__item--phone { background: var(--navy); color: var(--sand); }
.quick__item--phone:hover { background: var(--navy-3); }
.quick__item--phone svg { stroke: var(--gold); }
.quick__item--phone small { color: rgba(239,230,211,.7); }
.quick.is-docked {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; margin: 0; border-radius: 0;
  grid-template-columns: repeat(3, 1fr); box-shadow: 0 -10px 30px rgba(11,24,38,.25); z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
.quick.is-docked .quick__item { padding: .7rem .6rem; flex-direction: column; gap: .3rem; text-align: center; }
.quick.is-docked .quick__item b { font-size: .95rem; }
.quick.is-docked .quick__item small { display: none; }
.quick.is-docked svg { width: 22px; height: 22px; }
.quick__placeholder { display: none; }
.quick__placeholder.is-active { display: block; }

/* ============================================================ MARQUEE */
.marquee { overflow: hidden; padding: 2.4rem 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-style: italic; color: var(--ink-3); white-space: nowrap; }
.marquee__track span::after { content: "·"; margin-left: 3rem; color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ STORIA + MAPPA */
.story { padding: clamp(4rem, 9vw, 8rem) 0; }
.story__grid { display: grid; gap: 2.6rem; grid-template-areas: "head" "map" "time" "aside"; }
@media (min-width: 1000px) {
  .story__grid {
    grid-template-columns: 1.02fr .98fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head map" "time map" "time aside";
    column-gap: clamp(2.5rem, 5vw, 5rem); row-gap: 2.8rem;
  }
}
.story__head { grid-area: head; }
.story__head .h2 { max-width: 15ch; }
.story__head .lede { max-width: 46ch; }
.mgmap { grid-area: map; align-self: start; }
.timeline { grid-area: time; }
.story__aside { grid-area: aside; }

.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), var(--line)); }
.timeline__item { position: relative; padding-bottom: 2.6rem; }
.timeline__item::before { content: ""; position: absolute; left: -2.2rem; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--sand-2); border: 1.5px solid var(--gold); transition: background .3s, box-shadow .3s; }
.timeline__item:hover::before, .timeline__item--now::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(201,166,97,.18); }
.timeline__year { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); margin-bottom: .5rem; }
.timeline__item h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .55rem; }
.timeline__item p { color: var(--ink-2); max-width: 54ch; line-height: 1.7; }
.timeline__item--now h3 { color: var(--terra); }

.story__aside { background: var(--navy); color: var(--sand); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); overflow: hidden; }
.meander {
  height: 14px; margin-bottom: 1.8rem; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14' fill='none' stroke='%23C9A661' stroke-width='1.4'%3E%3Cpath d='M0 1h26v12H8V5h12v4h-8'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 28px 14px;
}
.story__quote p { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-style: italic; line-height: 1.35; color: var(--gold-2); margin-bottom: 1.8rem; }
.story__facts { display: flex; flex-direction: column; }
.story__facts li { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; border-top: 1px solid var(--line-light); }
.story__facts strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.story__facts span { font-size: .88rem; color: rgba(239,230,211,.75); line-height: 1.55; }

/* ---------- Mappa interattiva delle colonie ---------- */
.mgmap {
  background: linear-gradient(160deg, #12253A 0%, var(--navy) 55%, #0A1420 100%);
  border-radius: var(--radius); overflow: hidden; color: var(--sand);
  box-shadow: 0 40px 70px -45px rgba(11,24,38,.6);
}
.mgmap__stage { position: relative; padding: 1.2rem 1rem .2rem; }
.mgmap__stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 70% 25%, rgba(201,166,97,.14), transparent 70%);
  pointer-events: none;
}
.mgmap__svg { width: 100%; height: auto; max-height: 58vh; overflow: visible; }
.mgmap__land path { fill: url(#gradLand); stroke: var(--gold); stroke-width: 1.1; stroke-linejoin: round; opacity: .96; }
.mgmap__route { fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-dasharray: 6 7; opacity: .5; animation: sail 3s linear infinite; }
@keyframes sail { to { stroke-dashoffset: -26; } }
.mgmap__seatext { fill: rgba(226,198,135,.6); font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: .04em; }

.pin { cursor: pointer; }
.pin__hit { fill: transparent; }
.pin__halo { fill: var(--pin, var(--gold)); opacity: 0; transform-origin: center; }
.pin__dot { fill: var(--pin, var(--gold)); stroke: #0B1826; stroke-width: 1.2; transition: r .3s var(--ease); }
.pin[data-region="campania"]   { --pin: #D4626F; }
.pin[data-region="puglia"]     { --pin: #E08A6B; }
.pin[data-region="calabria"]   { --pin: #9CA87C; }
.pin[data-region="basilicata"] { --pin: #8FA0BC; }
.pin[data-region="sicilia"]    { --pin: #E2C687; }
.pin:hover .pin__dot { r: 5.6; }
.pin.is-active .pin__dot { r: 6.4; stroke: var(--sand); }
.pin.is-active .pin__halo { opacity: .3; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .45; } 100% { transform: scale(2.1); opacity: 0; } }
.pin__label { fill: var(--sand); font-family: var(--serif); font-size: 15px; opacity: 0; transition: opacity .3s; paint-order: stroke; stroke: #0B1826; stroke-width: 3px; stroke-linejoin: round; }
.pin.is-active .pin__label, .pin:hover .pin__label { opacity: 1; }
.pin:focus { outline: none; }
.pin:focus-visible .pin__dot { r: 6.4; stroke: var(--gold-2); stroke-width: 2.5; }
.pin:focus-visible .pin__label { opacity: 1; }
@media (max-width: 760px) { .pin__label { display: none; } }

.mgmap__panel { padding: .2rem 1.4rem 1.5rem; }
.mgmap__info { min-height: 10.5rem; }
.mgmap__info > * { transition: opacity .28s var(--ease), transform .28s var(--ease); }
.mgmap__info.is-swap > * { opacity: 0; transform: translateY(6px); }
.mgmap__year { font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.mgmap__name { font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--sand); }
.mgmap__modern { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-2); margin-bottom: .6rem; }
.mgmap__text { font-size: .93rem; line-height: 1.65; color: rgba(239,230,211,.82); }
.mgmap__nav { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.mgmap__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-light); color: var(--sand); transition: background .25s, border-color .25s, color .25s;
}
.mgmap__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.mgmap__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mgmap__count { font-size: .8rem; letter-spacing: .1em; color: rgba(239,230,211,.55); }
.mgmap__count b { color: var(--gold-2); font-weight: 700; }
.mgmap__hint { margin-top: .9rem; font-size: .76rem; color: rgba(239,230,211,.45); }

/* ============================================================ REGIONI (bento) */
.regions { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--sand-3); border-block: 1px solid var(--line); }
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento__card--lg { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento__card--lg { grid-column: span 2; grid-row: span 2; } }
.bento__card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; min-height: 230px; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.bento__card::before {
  content: ""; position: absolute; inset: auto -30% -50% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 68%); opacity: .18; transition: opacity .5s, transform .6s var(--ease);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(11,24,38,.35); border-color: transparent; }
.bento__card:hover::before { opacity: .38; transform: scale(1.25); }
.bento__idx { font-size: .7rem; font-weight: 700; letter-spacing: .25em; color: var(--accent); }
.bento__card h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.bento__card--lg h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.bento__card p { color: var(--ink-2); font-size: .95rem; line-height: 1.65; max-width: 44ch; }
.bento__deco { position: absolute; right: -6%; bottom: -8%; width: 58%; max-width: 360px; color: var(--accent); opacity: .16; pointer-events: none; transition: opacity .5s, transform .8s var(--ease); }
.bento__card:hover .bento__deco { opacity: .28; transform: rotate(-4deg) scale(1.04); }
@media (max-width: 999px) { .bento__deco { width: 44%; } }
.bento__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .8rem; }
.bento__tags li { font-size: .7rem; font-weight: 600; letter-spacing: .05em; padding: .32rem .6rem; border-radius: 999px; background: var(--sand-2); border: 1px solid var(--line); color: var(--ink-2); }

/* ============================================================ METODO */
.method { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--navy); color: var(--sand); position: relative; overflow: hidden; }
.method::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 85% 10%, rgba(201,166,97,.18), transparent 70%); pointer-events: none; }
.method .eyebrow { color: var(--gold); }
.method .h2 { color: var(--sand); }
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.8rem 1.6rem; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255,255,255,.03); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.step:hover { background: rgba(255,255,255,.06); border-color: rgba(201,166,97,.45); transform: translateY(-4px); }
.step__n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.55rem; margin-bottom: .55rem; }
.step p { font-size: .92rem; color: rgba(239,230,211,.78); line-height: 1.65; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.6rem; }
.badges span { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line-light); color: var(--gold-2); }

/* ============================================================ PARTNER */
.partner { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--sand-3); border-bottom: 1px solid var(--line); }
.partner__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .partner__grid { grid-template-columns: 360px 1fr; gap: 4rem; } }
.partner__logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem; aspect-ratio: 1; max-width: 360px; }
.partner__logo img { width: 100%; max-width: 260px; }
.partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.partner__hint { font-size: .8rem; color: var(--ink-3); }

/* ============================================================ FORM */
.quote { padding: clamp(4rem, 9vw, 8rem) 0; }
.quote__grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; } .quote__copy { position: sticky; top: calc(var(--nav-h) + 2rem); } }
.quote__bullets { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.quote__bullets li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.quote__bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

.form {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 30px 60px -40px rgba(11,24,38,.35);
}
@media (min-width: 600px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--sand-3);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,166,97,.25); background: #fff; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--terra); }
.field textarea { resize: vertical; min-height: 110px; }
.consent-check { display: flex; align-items: flex-start; gap: .7rem; font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
.consent-check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--gold-3); flex: none; }
.consent-check a { text-decoration: underline; }
.form__status { grid-column: 1 / -1; font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--olive); font-weight: 600; }
.form__status.is-err { color: var(--terra); font-weight: 600; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================ CONTATTI */
.contact { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--sand-3); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2.4rem; }
@media (min-width: 640px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact__grid { grid-template-columns: repeat(4, 1fr); } }
.ccard { display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.ccard:not(.ccard--static):hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 30px 50px -35px rgba(11,24,38,.4); }
.ccard__label { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-3); }
.ccard strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; word-break: break-word; }
.ccard__sub { font-size: .8rem; color: var(--ink-3); }
.form--contact { max-width: 820px; }

/* ============================================================ FOOTER */
.foot { background: var(--navy); color: var(--sand); padding: clamp(3rem, 7vw, 5rem) 0 0; }
.foot__grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr 1fr; padding-bottom: 3rem; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .foot__brand { grid-column: auto; } }
.foot__mark { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; color: var(--sand); }
.foot__word { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; white-space: nowrap; }
.foot__word em { color: var(--gold); font-style: italic; }
.brandmark--lg { width: 64px; height: 64px; }
.foot__brand p { font-size: .9rem; color: rgba(239,230,211,.75); line-height: 1.6; }
.foot__h { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.foot__grid a, .foot__link { display: block; padding: .3rem 0; font-size: .92rem; color: rgba(239,230,211,.85); transition: color .2s; text-align: left; }
.foot__grid a:hover, .foot__link:hover { color: var(--gold-2); }
.foot__bottom { border-top: 1px solid var(--line-light); padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom)); width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .78rem; color: rgba(239,230,211,.6); }
body.has-dock .foot__bottom { padding-bottom: calc(var(--dock-h) + 1.4rem); }

/* ============================================================ CHIEDI INFORMAZIONI (sempre in basso a destra) */
.ask {
  position: fixed; right: clamp(14px, 3vw, 28px);
  bottom: calc(clamp(14px, 3vw, 28px) + var(--dock-h) + env(safe-area-inset-bottom));
  z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
  transition: bottom .35s var(--ease), opacity .3s, transform .3s;
}
body.consent-open .ask { opacity: 0; pointer-events: none; transform: translateY(12px); }
.ask__btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.3rem; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 14px 34px -12px rgba(11,24,38,.6); transition: background .25s, transform .3s var(--ease);
}
.ask__btn:hover { background: var(--gold-2); transform: translateY(-2px); }
.ask__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--gold);
  animation: askPing 3.4s ease-out infinite; pointer-events: none;
}
.ask__btn[aria-expanded="true"]::after { display: none; }
@keyframes askPing { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(1.26); opacity: 0; } }
.ask__ico { width: 22px; height: 22px; flex: none; }
.ask__ico--close { display: none; }
.ask__btn[aria-expanded="true"] .ask__ico--chat { display: none; }
.ask__btn[aria-expanded="true"] .ask__ico--close { display: block; }
@media (max-width: 600px) {
  .ask__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ask__btn { padding: 1rem; border-radius: 50%; }
  .ask__ico { width: 24px; height: 24px; }
}
.ask__menu {
  display: flex; flex-direction: column; gap: .5rem; width: min(300px, calc(100vw - 32px));
  background: var(--navy); border: 1px solid var(--line-light); border-radius: 18px; padding: .6rem;
  box-shadow: 0 26px 60px -24px rgba(11,24,38,.75);
  transform-origin: bottom right; animation: askIn .28s var(--ease);
}
.ask__menu[hidden] { display: none; }
@keyframes askIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.ask__opt { display: flex; align-items: center; gap: .8rem; padding: .75rem .85rem; border-radius: 12px; color: var(--sand); transition: background .2s; }
.ask__opt:hover { background: rgba(255,255,255,.07); }
.ask__opt svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.ask__opt span { display: flex; flex-direction: column; line-height: 1.3; }
.ask__opt b { font-size: .95rem; font-weight: 600; }
.ask__opt small { font-size: .74rem; color: rgba(239,230,211,.65); }

/* ============================================================ BANNER COOKIE */
.cc { position: fixed; inset: auto 0 0 0; z-index: 200; display: flex; justify-content: center; padding: clamp(12px, 3vw, 28px); pointer-events: none; }
.cc[hidden] { display: none; }
.cc::before { content: ""; position: fixed; inset: 0; background: rgba(11,24,38,.4); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cc.is-prefs::before { opacity: 1; pointer-events: auto; }
.cc__card {
  position: relative; pointer-events: auto; width: min(560px, 100%);
  background: var(--navy); color: var(--sand); border: 1px solid var(--line-light);
  border-radius: 20px; padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  animation: ccIn .5s var(--ease); max-height: calc(100dvh - 2rem); overflow-y: auto;
}
.cc.is-prefs .cc__card { width: min(640px, 100%); }
@keyframes ccIn { from { opacity: 0; transform: translateY(26px); } }
.cc__meander {
  height: 12px; margin-bottom: 1.1rem; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14' fill='none' stroke='%23C9A661' stroke-width='1.4'%3E%3Cpath d='M0 1h26v12H8V5h12v4h-8'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 24px 12px;
}
.cc__title { font-size: 1.6rem; margin-bottom: .5rem; color: var(--sand); }
.cc__text { font-size: .9rem; line-height: 1.6; color: rgba(239,230,211,.82); }
.cc__text a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.cc__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; align-items: center; }
.cc__btn {
  flex: 1 1 auto; min-width: 140px; padding: .85rem 1.2rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.cc__btn:hover { transform: translateY(-2px); }
/* Accetta e Rifiuta hanno lo stesso peso visivo: nessun dark pattern. */
.cc__btn--accept { background: var(--gold); color: var(--navy); }
.cc__btn--accept:hover { background: var(--gold-2); }
.cc__btn--reject { background: transparent; color: var(--sand); border: 1px solid rgba(239,230,211,.5); }
.cc__btn--reject:hover { border-color: var(--gold); color: var(--gold-2); }
.cc__btn--prefs {
  flex: 0 0 auto; min-width: 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px;
  color: rgba(239,230,211,.78); letter-spacing: .04em; text-transform: none; font-size: .82rem; font-weight: 500; padding: .85rem .6rem;
}
.cc__btn--prefs:hover { color: var(--gold-2); }
.cc__btn--save { background: var(--gold); color: var(--navy); }

.cc__panel { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
.cc__row { display: flex; align-items: flex-start; gap: 1rem; padding: .95rem 1rem; border: 1px solid var(--line-light); border-radius: 14px; background: rgba(255,255,255,.03); }
.cc__row h4 { font-family: var(--sans); font-size: .88rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .2rem; }
.cc__row p { font-size: .8rem; line-height: 1.5; color: rgba(239,230,211,.68); }
.cc__row-txt { flex: 1; }
.cc__sw { position: relative; flex: none; width: 48px; height: 28px; }
.cc__sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc__sw i { position: absolute; inset: 0; border-radius: 999px; background: rgba(239,230,211,.22); transition: background .25s; pointer-events: none; }
.cc__sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); transition: transform .28s var(--ease); }
.cc__sw input:checked + i { background: var(--gold); }
.cc__sw input:checked + i::after { transform: translateX(20px); }
.cc__sw input:focus-visible + i { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.cc__sw input:disabled + i { background: rgba(201,166,97,.55); }
.cc__sw input:disabled { cursor: default; }
.cc__foot { margin-top: 1rem; font-size: .74rem; color: rgba(239,230,211,.55); }
.cc__foot a { color: rgba(239,230,211,.8); text-decoration: underline; }

/* ============================================================ PAGINE TESTO (cookie policy) */
.doc { padding: calc(var(--nav-h) + 3rem) 0 5rem; }
.doc__inner { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.4rem 0 .8rem; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.75; margin-bottom: .8rem; }
.doc ul { list-style: disc; padding-left: 1.3rem; }
.doc a { color: var(--gold-3); text-decoration: underline; }
.doc__meta { font-size: .82rem; color: var(--ink-3); margin-bottom: 2rem; }
.doc__tablewrap { overflow-x: auto; margin: 1rem 0 1.6rem; }
.doc__table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.doc__table th, .doc__table td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.doc__table th { background: var(--sand-2); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.doc__back { display: inline-block; margin-bottom: 2rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-3); }

/* ============================================================ RIDUZIONE MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span, .hero__title .line > em { transform: none; }
  .amph__outline { stroke-dashoffset: 0; }
  .amph__liquid { transform: translateY(250px); }
  html { scroll-behavior: auto; }
}
