/* Landing Distilleria Ponte Valleceppi (PG) — gobidreal.it
   Design system GobidReal: teal #007377, ink #121212, Nunito Sans.
   Gli stili erano inline nel prototipo Claude Design (React): qui sono classi, e i
   valori che il prototipo calcolava in JS sulla larghezza della finestra sono
   media query con le stesse soglie. */

:root {
  --teal: #007377;
  --teal-ink: #004F52;
  --teal-soft: #5B9B9D;
  --teal-light: #7FC4C6;
  --tint: #E6F1F1;
  --ink: #121212;
  --muted: #3B3A36;
  --grey: #6E6E6E;
  --bg: #FAF8F3;
  --cream: #F3F0EA;
  --line: #EDEBE7;
  --line2: #D9D6CF;
  --rust: #B5602A;
  --err: #B3261E;
  --ok: #1E8F5F;
  --gutter: clamp(16px, 4vw, 56px);
  --sec-y: clamp(64px, 7vw, 104px);
  --grad-dark: linear-gradient(160deg, #0B1F20 0%, #123C3E 55%, #1F6B6D 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-ink); }
input, select, textarea, button { font-family: inherit; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
body.is-modal { overflow: hidden; }

@keyframes gg-spin { to { transform: rotate(360deg); } }
@keyframes gg-fill { from { width: 0%; } to { width: 100%; } }
@keyframes gg-unfold { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- tipografia ricorrente ---------- */
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.kicker--ink { color: var(--ink); letter-spacing: 0.1em; margin-bottom: 6px; }
.kicker--white { color: #fff; }
.kicker--muted { color: var(--muted); font-size: 12.5px; margin: 0; }
.h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: pretty; }
.h2--mb { margin-bottom: clamp(24px, 3vw, 40px); }
.h2--white { color: #fff; }
.h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.body { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.body strong { font-weight: 800; color: var(--ink); }
.lead { margin: 16px 0 0; font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.small { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.small a, .sec__nota a { color: var(--teal-ink); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--14 { gap: 14px; }
.stack--16 { gap: 16px; align-items: flex-start; }
.stack--18 { gap: 18px; }
.stack--24 { gap: clamp(20px, 2.4vw, 32px); }

.ai-tag { position: absolute; bottom: 16px; right: 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(18,18,18,0.72); color: #fff; border-radius: 4px; padding: 5px 8px; line-height: 1.3; }
.ai-tag--sm { bottom: 10px; right: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; background: rgba(18,18,18,0.6); padding: 3px 7px; }
.ai-tag--xs { bottom: 6px; right: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; background: rgba(18,18,18,0.6); border-radius: 3px; padding: 2px 5px; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 100px; border: none; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-ink); color: #fff; }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--white { background: #fff; color: var(--teal-ink); font-size: 16px; min-height: 52px; padding: 14px 24px; }
.btn--white:hover { background: var(--tint); color: var(--teal-ink); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.7); color: #fff; font-weight: 700; min-height: 52px; padding: 14px 24px; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn--block { width: 100%; border-radius: 8px; min-height: 52px; font-size: 16px; }
.btn[disabled], .btn.is-sending { background: var(--teal-soft); cursor: not-allowed; }
.spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: gg-spin 0.7s linear infinite; }
.is-sending .spin { display: inline-block; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--teal); border-radius: 100px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); text-decoration: none; }
.pill:hover { background: var(--tint); }
.chip { align-self: flex-start; margin-top: auto; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--cream); color: var(--ink); border-radius: 100px; padding: 8px 14px; }

/* ---------- barra della procedura ---------- */
.announce { background: var(--teal); color: #fff; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.announce__strong { font-weight: 800; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter); display: flex; align-items: center; gap: 12px 26px; }
.hdr__logo { display: block; flex: 0 1 300px; min-width: 150px; line-height: 0; padding: 12px 20px 12px 0; }
.hdr__logo img { width: 100%; max-width: 280px; height: auto; display: block; }
.hdr__aste { display: none; flex: none; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 2px solid var(--teal); border-radius: 100px; font-size: 16px; font-weight: 700; color: var(--teal-ink); text-decoration: none; white-space: nowrap; }
.hdr__aste:hover { background: var(--tint); }
.hdr__aste > span:first-child { font-size: 13px; letter-spacing: -2px; }
.hdr__nav { display: none; align-items: center; gap: clamp(14px, 1.4vw, 26px); }
.hdr__nav a { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.hdr__nav a:hover { color: var(--teal); }
.hdr__cta { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 100px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hdr__cta:hover { background: var(--teal-ink); color: #fff; }
.hdr__cta-short { display: none; }
.hdr__auth { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border: 1.5px solid var(--teal); border-radius: 100px; background: #fff; color: var(--teal-ink); font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.hdr__auth:hover { background: var(--tint); color: var(--teal-ink); }
/* la pill "tutte le aste" e il menu insieme ci stanno solo da 1600px */
@media (min-width: 900px) and (max-width: 1099.98px), (min-width: 1600px) { .hdr__aste { display: inline-flex; } }
@media (min-width: 1100px) { .hdr__nav { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__bg { position: relative; z-index: 0; height: clamp(220px, 46vw, 420px); }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; display: block; }
.hero__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(250,248,243,0) 55%, var(--bg) 100%); }
.hero__ai { z-index: 1; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px); }
.hero__body { display: flex; flex-direction: column; gap: 22px; padding: 8px var(--gutter) 48px; min-width: 0; }
.hero h1 { margin: 0; max-width: 20ch; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero__tag { display: inline-block; background: linear-gradient(100deg, #0B1F20 0%, #123C3E 45%, #1F6B6D 100%); color: #fff; line-height: 0.92; padding: 0.02em 0.14em 0.1em; white-space: nowrap; vertical-align: baseline; animation: gg-unfold 1100ms cubic-bezier(0.22, 0.61, 0.36, 1) 300ms both; }
.hero__accent { color: var(--teal); }
.hero__sub { margin: 0; max-width: 44ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; color: var(--teal-ink); text-wrap: pretty; }
.hero__lead { margin: 0; max-width: 60ch; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.hero__deadline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.hero__termine { display: flex; flex-direction: column; gap: 4px; }
.hero__termine .kicker { letter-spacing: 0.14em; color: var(--muted); margin: 0; }
.hero__termine time { font-size: clamp(15px, 1.15vw, 17px); font-weight: 800; }
.countdown { display: flex; gap: 8px; width: 100%; max-width: 360px; }
.countdown__tile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; background: #fff; border: 1px solid var(--line2); border-radius: 10px; }
.countdown__num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.countdown.is-closed .countdown__num { color: var(--grey); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__ctas .btn { width: 100%; }
@media (max-width: 399px) { .hero h1 { font-size: 30px; } }
@media (max-width: 339px) { .hero h1 { font-size: 27px; } }
@media (min-width: 720px) {
  .countdown { width: auto; }
  .countdown__tile { flex: none; width: 68px; }
  .hero__ctas .btn { width: auto; }
}
@media (min-width: 960px) {
  .hero__bg { position: absolute; inset: 0; height: auto; }
  .hero__bg img { left: 30%; width: 70%; object-position: right center; }
  .hero__bg::after { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%, rgba(250,248,243,0.75) 42%, rgba(250,248,243,0) 60%); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: clamp(520px, 44vw, 720px); }
  .hero__body { padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px) var(--gutter); }
  .hero__lead { max-width: min(40ch, calc(42vw - 40px)); }
}

/* ---------- fascia numeri ---------- */
.stats { background: linear-gradient(100deg, #0B1F20 0%, #123C3E 45%, #1F6B6D 100%); color: #fff; padding: clamp(28px, 3vw, 40px) var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 40px); }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.stat > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat p { margin: 0; color: #fff; }
.stat__big { flex: none; font-size: clamp(32px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat__unit { font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.stat__lbl { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { flex-direction: row; align-items: center; gap: 12px; }
}
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- sezioni ---------- */
.sec { padding: var(--sec-y) var(--gutter); background: var(--bg); }
.sec--flush { padding-top: 0; padding-bottom: clamp(56px, 6vw, 80px); }
.sec--per { padding-bottom: clamp(16px, 2vw, 32px); }
.sec__head { text-align: center; margin: 0 auto clamp(36px, 4vw, 56px); max-width: 760px; }
.sec__head .kicker { letter-spacing: 0.14em; }
.sec__head .lead { margin: 16px auto 0; max-width: 62ch; }
.sec__head .body { font-size: 16px; line-height: 1.7; margin-top: 16px; }
.sec__nota { margin-top: 28px; }
.sec__nota--rule { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line2); padding-top: 22px; }

/* ---------- card ---------- */
.cards { display: grid; gap: clamp(16px, 2vw, 24px); }
.cards--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.cards--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.card h4 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.card__num { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--teal-ink); }
.card--center { align-items: center; text-align: center; padding: 26px 24px; gap: 8px; }
.card--center p { font-size: 14.5px; max-width: 56ch; }
.card__code { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--teal-ink); }
.card--brand { gap: 16px; padding: clamp(22px, 2.4vw, 32px); }
.card--brand p { font-size: 15px; line-height: 1.65; }
.card--brand strong { font-weight: 800; color: var(--ink); }
.card__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card__brand img { width: 200px; max-width: 100%; height: auto; display: block; padding: 20px 20px 20px 0; box-sizing: content-box; }
.card__brand a { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); text-decoration: none; }
.card__brand a:hover { text-decoration: underline; }

/* ---------- il dettaglio + galleria ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: stretch; }
.detail__text { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.detail__text .kicker { margin: 0; }
.detail__nota { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line2); padding-top: clamp(20px, 2.4vw, 28px); }
.gal-tabs { display: flex; flex-direction: column; border-bottom: 1px solid var(--line2); }
.gal-tab { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; width: 100%; padding: 16px 0; border: none; border-top: 1px solid var(--line2); background: transparent; text-align: left; cursor: pointer; }
.gal-tab__num { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #B8B4AB; }
.gal-tab__lbl { font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); transition: color 250ms ease; }
.gal-tab__sub { grid-column: 2; font-size: 13.5px; line-height: 1.4; color: var(--grey); }
.gal-tab__bar { display: none; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: rgba(0,115,119,0.15); overflow: hidden; }
.gal-tab__bar span { display: block; height: 100%; width: 0; background: var(--teal); }
.gal-tab.is-active .gal-tab__num { color: var(--teal); }
.gal-tab.is-active .gal-tab__lbl { color: var(--teal-ink); }
.gal-tab.is-active .gal-tab__bar { display: block; }
.gal-tab.is-active .gal-tab__bar span { animation: gg-fill var(--gal-ms, 4500ms) linear forwards; }
.gal.is-paused .gal-tab__bar span, .is-paused .gal-tab.is-active .gal-tab__bar span { animation: none; width: 0; }
.gal { margin: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.gal__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.gal__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 500ms ease-out; }
.gal__slide.is-active { opacity: 1; pointer-events: auto; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.gal__ai { top: 12px; bottom: auto; right: 12px; padding: 4px 7px; }
.gal__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.gal__dot { width: 8px; height: 6px; border-radius: 3px; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.55); transition: width 250ms ease; }
.gal__dot.is-active { width: 22px; background: #fff; }
.gal figcaption { display: flex; flex-direction: column; gap: 4px; }
.gal figcaption p { margin: 0; }
.gal__title { font-size: 15px; font-weight: 800; line-height: 1.4; }
.gal__note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.gal__ainote { font-size: 13px; line-height: 1.5; color: var(--grey); }
@media (min-width: 720px) {
  .gal-tab { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .gal-tab__sub { grid-column: auto; text-align: right; }
}
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .gal__frame { flex: 1 1 auto; min-height: 320px; aspect-ratio: auto; }
  .gal__dots { display: none; }
}

/* ---------- perché / per chi ---------- */
.why__know { margin-top: clamp(20px, 2.4vw, 28px); }
.why__know .body { line-height: 1.6; }
.per__lead { margin: calc(-1 * clamp(12px, 1.5vw, 24px)) 0 clamp(24px, 3vw, 40px); font-size: 18px; line-height: 1.65; }

/* ---------- leva di sviluppo ---------- */
.leva { position: relative; margin-top: clamp(96px, 10vw, 150px); background: var(--teal); color: #fff; padding: 0 var(--gutter) var(--sec-y); }
.leva__flag { transform: translateY(-50%); margin: 0 0 calc(-1 * clamp(24px, 3vw, 48px)) calc(-1 * var(--gutter)); }
.leva__box { display: inline-block; max-width: 100%; background: var(--ink); padding: clamp(20px, 2.4vw, 36px) clamp(22px, 3vw, 48px) clamp(20px, 2.4vw, 36px) var(--gutter); }
.leva__box p { margin: 0; font-size: clamp(30px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; color: #fff; }
.leva__grad { background: linear-gradient(90deg, #fff 0%, #fff 30%, #7FC4C6 75%, #A9DCDD 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.leva__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: center; }
.leva__fig { margin: 0; position: relative; line-height: 0; overflow: hidden; }
.leva__fig img { width: 100%; height: auto; aspect-ratio: 1961 / 802; object-fit: cover; display: block; }
.leva .h2 { margin-bottom: 20px; }
.leva__p { margin: 0; font-size: 17px; line-height: 1.7; color: #fff; text-wrap: pretty; }

/* ---------- lotto 2 ---------- */
.lot2 { background: var(--line); }
.lot2__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.lot2__h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.lot2__prezzo { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.lot2__lbl { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.lot2__fig { margin: 0; position: relative; line-height: 0; }
.lot2__fig img { width: 100%; height: auto; aspect-ratio: 1484 / 775; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 12%, #000 28%, #000 72%, rgba(0,0,0,0.6) 88%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.6) 12%, #000 28%, #000 72%, rgba(0,0,0,0.6) 88%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect; }
@media (min-width: 1100px) { .lot2__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.45fr); } }

/* ---------- come partecipare ---------- */
.phases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.phase { display: flex; flex-direction: column; gap: 18px; --ph: var(--teal); }
.phase--rust { --ph: var(--rust); }
.phase__head { display: flex; flex-direction: column; gap: 14px; }
.phase__pill { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ph); color: #fff; border-radius: 100px; padding: 9px 16px; }
.phase__line { height: 3px; background: var(--ph); border-radius: 2px; }
.phase__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; flex: 1; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 2vw, 28px); display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.step__ico { width: 44px; height: 44px; border-radius: 8px; background: var(--ph); color: #fff; display: flex; align-items: center; justify-content: center; }
.step__num { margin: 6px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ph); }
.step h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.step p:not(.step__num) { margin: 0 0 8px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.step__arrow { display: none; position: absolute; top: 50%; right: -17px; transform: translateY(-50%); font-size: 18px; color: #B8B4AB; z-index: 2; }
@media (min-width: 640px) { .phase__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .phases { grid-template-columns: 3fr 2fr; }
  .phase__steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step__arrow { display: block; }
}

/* ---------- banner scadenza ---------- */
.banner { background: var(--grad-dark); color: #fff; padding: var(--sec-y) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.banner .kicker { margin: 0; letter-spacing: 0.14em; }
.banner .h2 { max-width: 880px; text-wrap: balance; }
.banner time { color: var(--teal-light); }
.banner__p { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: #fff; text-wrap: pretty; }
.banner__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- calendario ---------- */
.cal { background: var(--cream); border-top: 1px solid var(--teal); }
.cal .sec__head { max-width: 800px; margin-bottom: clamp(40px, 5vw, 64px); }
.cal .h2 { margin-bottom: 16px; }
.cal .h2 em, .ref .h2 em { font-style: italic; }
.cal .h2 em { color: var(--teal); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 0; }
.tl { display: flex; flex-direction: column; gap: 12px; padding-right: 16px; }
.tl__when { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-height: 18px; }
.tl--first .tl__when { color: var(--teal); }
.tl__track { display: flex; align-items: center; gap: 12px; }
.tl__dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--teal); background: transparent; }
.tl--first .tl__dot { background: var(--teal); }
.tl__line { display: none; flex: 1; height: 2px; background: var(--line2); }
.tl h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.tl p:last-child { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (min-width: 820px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl:not(:last-child) .tl__line { display: block; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.faq__item summary { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; min-height: 56px; cursor: pointer; }
.faq__item summary:hover { background: var(--bg); }
.faq__item h3 { margin: 0; font-size: 17.5px; font-weight: 800; line-height: 1.4; }
.faq__sign::before { content: "+"; flex: none; font-size: 22px; line-height: 1; }
.faq__item[open] .faq__sign::before { content: "−"; }
.faq__item p { margin: 0; padding: 0 20px 20px; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ---------- richiedi la visione / referente ---------- */
.ref { background: var(--line); }
.ref__box { background: #fff; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.ref__head { background: var(--grad-dark); color: #fff; padding: clamp(44px, 6vw, 80px) clamp(20px, 4vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ref__head .kicker { margin: 0; letter-spacing: 0.14em; }
.ref__head .h2 { text-wrap: balance; }
.ref__head .btn { margin-top: 8px; }
.ref__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 10px; font-size: 15px; font-weight: 700; }
.ref__contacts a { color: #fff; text-decoration: none; }
.ref__contacts a:hover { color: var(--teal-light); }
.ref__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line); }
.ref__card { background: #fff; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.ref__card .kicker { margin: 0; letter-spacing: 0.14em; }
.ref__card h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.ref__card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ref__card .btn { align-self: flex-start; margin-top: 10px; }
.ref__foot { border-top: 1px solid var(--line); padding: 16px clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.ref__foot a { color: var(--teal-ink); font-weight: 800; text-decoration: none; }
.ref__foot a:hover { text-decoration: underline; }

/* ---------- contatti + form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2vw, 32px); align-items: start; }
.contact__card { background: #fff; border: 1px solid #E6E2DA; border-radius: 16px; padding: clamp(24px, 3vw, 44px); }
.contact__direct { background: var(--cream); border: 1px solid #E6E2DA; border-radius: 16px; padding: clamp(24px, 3vw, 44px); }
.contact__direct h3 { margin: 0 0 24px; font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.direct { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0 0; }
.direct--rule { padding: 0 0 24px; border-bottom: 1px solid var(--line2); }
.direct > div { display: grid; gap: 6px; min-width: 0; }
.direct__big { font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; color: var(--teal-ink); text-decoration: none; }
.direct__big--mail { font-size: clamp(17px, 1.6vw, 19px); word-break: break-all; }
.direct__big:hover { text-decoration: underline; }
.ico-box { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--tint); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.ico-round { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.form { display: grid; gap: 20px; }
.form__head { display: grid; gap: 16px; }
.form__head p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--muted); text-wrap: pretty; }
.form__title { display: flex; align-items: center; gap: 16px; }
.form__title .ico-box { width: 50px; height: 50px; }
.form__title h3 { margin: 0; font-size: clamp(22px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; }
.req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; font-size: 16px; padding: 14px 16px; border-radius: 8px; background: var(--bg); color: var(--ink); outline: none; min-height: 54px; border: 1px solid var(--line2); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,115,119,0.18); background: #fff; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); }
.field__err { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--err); }
.field__err:empty { display: none; }
.captcha { min-height: 78px; }
.btn--submit { justify-self: start; min-height: 56px; padding: 14px 28px; font-size: 16px; }
.alert { border: 1px solid var(--err); border-radius: 8px; padding: 14px 16px; background: #FDF3F2; }
.alert p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.alert .alert__title { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--err); }
.alert a { font-weight: 700; }
.form__err { margin: 0; font-size: 14px; line-height: 1.5; color: var(--err); }
.form__err a { color: var(--err); font-weight: 800; }
.success { display: grid; gap: 12px; }
.success__h { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.success .small a { font-weight: 700; }
@media (min-width: 600px) { .form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- chi siamo ---------- */
.chi { background: #fff; display: grid; gap: clamp(36px, 4.5vw, 64px); scroll-margin-top: 96px; }
.chi__h2 { margin: 0; text-align: center; font-size: clamp(32px, 3.8vw, 48px); font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: 1.2; text-transform: uppercase; }
.chi__h2 span { color: var(--teal); }
.chi__intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 72px); align-items: center; }
.chi__intro .body { line-height: 1.7; }
.chi__logo { width: 312px; max-width: 100%; height: auto; display: block; padding: 20px 20px 20px 0; box-sizing: content-box; }
.chi__foto { height: clamp(240px, 24vw, 340px); border-radius: 14px; overflow: hidden; background: var(--line); }
.chi__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chi__leadhead { text-align: center; max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.chi__leadhead .small { font-size: 15px; line-height: 1.65; }
.kpi { background: var(--teal-ink); color: #fff; border-radius: 14px; padding: 24px 26px; display: flex; align-items: center; gap: 16px; }
.kpi > svg { flex: none; }
.kpi > div { display: flex; flex-direction: column; gap: 4px; }
.kpi p { margin: 0; color: #fff; }
.kpi__big { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.kpi__lbl { font-size: 13px; font-weight: 700; }
.kpi__note { font-size: 12px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--line2); padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; display: grid; gap: clamp(28px, 3vw, 44px); }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(24px, 3vw, 48px); }
.foot__cols p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.foot__logo { width: 280px; max-width: 100%; height: auto; display: block; padding: 0 20px 20px 0; box-sizing: content-box; }
.foot__cols .foot__strong { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--bg); }
.foot__cols .foot__k { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-light); }
.foot__links { display: grid; gap: 2px; font-size: 14px; }
.foot__links a, .foot__btn { display: block; padding: 6px 0; color: var(--bg); text-decoration: none; }
.foot__links a:hover, .foot__btn:hover { color: var(--teal-light); }
.foot__btn { background: none; border: none; font-size: 14px; text-align: left; cursor: pointer; }
.foot__list { display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.social { display: flex; flex-wrap: wrap; gap: 2px; margin: 18px 0 0 -7px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 100px; }
.social a:hover { opacity: 0.75; }
.social span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 100px; background: #fff; }
.foot__bottom { border-top: 1px solid var(--muted); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot__bottom p { margin: 0; font-size: 12.5px; color: #B8B4AB; }
.foot__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.lang-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #B8B4AB; }
.lang-sw__on, .lang-sw a { font-size: 12px; letter-spacing: 0; border-radius: 100px; }
.lang-sw__on { background: var(--bg); color: var(--ink); padding: 3px 9px; }
.lang-sw a { border: 1px solid var(--muted); color: var(--line2); padding: 2px 8px; text-decoration: none; }
.lang-sw a:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* ---------- barra fissa (>= 720px) ---------- */
.bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); border-top: 1px solid var(--muted); padding: 10px var(--gutter); align-items: center; justify-content: space-between; gap: 12px 20px; }
.bar__txt { margin: 0; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--bg); }
.bar__txt strong { font-weight: 800; color: var(--teal-light); }
.bar__actions { display: flex; flex: none; align-items: center; gap: 18px; }
.bar__link { display: none; font-size: 14px; font-weight: 700; color: var(--bg); white-space: nowrap; }
.bar__link:hover { color: var(--teal-light); }
@media (min-width: 720px) {
  .bar { display: flex; }
  body { padding-bottom: 66px; }
}
@media (min-width: 1150px) { .bar__link { display: inline; } }

/* ---------- mobile (< 720px): come le landing Ternana e Matrix ---------- */
.tabbar { display: none; }
@media (max-width: 719.98px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .announce { padding: 8px 16px; gap: 2px 10px; font-size: 11.5px; line-height: 1.45; }
  .hdr { gap: 12px; padding: 4px 16px; }
  .hdr__logo { padding: 12px 8px 12px 0; }
  .hdr__logo { flex-basis: 168px; min-width: 110px; }
  .hdr__logo img { max-width: 160px; }
  .hdr__cta { border-radius: 10px; padding: 12px 16px; }
  .hdr__auth { display: none; }

  .tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 26px rgba(15,23,42,0.12); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar > a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
  .tabbar__fab { flex: 0 0 68px; position: relative; display: flex; justify-content: center; align-self: stretch; }
  .fab { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border: none; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #4DC1C5 0%, #007377 50%, #004F52 100%); color: #fff; filter: drop-shadow(0 8px 18px rgba(0,79,82,0.45)); transition: transform 200ms ease; }
  .fab:hover { transform: translateX(-50%) translateY(-2px); }
  .fab:active { transform: translateX(-50%) scale(0.94); }
  .fab:focus-visible { outline: 2px solid #007377; outline-offset: 4px; }
  .fab__logo { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .tabbar.is-open .fab__logo { transform: scale(0.92); }
  .fab::after { content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; border-radius: 50%; border: 2px solid #007377; transform: translate(-50%, -50%) scale(0.5); opacity: 0; pointer-events: none; }
  .tabbar.is-open .fab::after { animation: fabRipple 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

  /* speed-dial a pill orizzontale con due azioni, come matrix-shop: la pill cresce
     dal bottone, poi atterrano le icone e infine compaiono le etichette */
  .fab-menu { position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); width: 240px; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; pointer-events: none; filter: drop-shadow(0 10px 28px rgba(0,50,53,0.45)) drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
  .fab-menu::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 28px; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 50%), radial-gradient(circle at 50% 115%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 62%), linear-gradient(160deg, #007074 0%, #004F52 50%, #00383B 100%); transform: translate(-50%, 90%) scale(0.4); transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .tabbar.is-open .fab-menu::before { width: 240px; height: 50px; transform: translate(-50%, -50%); transition-delay: 0.08s; }
  .fab-menu::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1px; height: 24px; transform: translate(-50%, -50%); background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.32) 50%, rgba(255,255,255,0) 100%); opacity: 0; transition: opacity 0.35s ease 0.4s; }
  .tabbar.is-open .fab-menu::after { opacity: 1; }
  .fab-menu a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; pointer-events: none; -webkit-tap-highlight-color: transparent; transform: translate(0, 60px) scale(0.4) rotate(-90deg); transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, visibility 0s linear 0.55s; }
  .fab-menu a:last-child { flex-direction: row-reverse; }
  .tabbar.is-open .fab-menu a { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .tabbar.is-open .fab-menu a:nth-child(1) { transition-delay: 0.38s; }
  .tabbar.is-open .fab-menu a:nth-child(2) { transition-delay: 0.48s; }
  .fab-menu__ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.35); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%), linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.02) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.2); transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
  .fab-menu__ico svg { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .tabbar.is-open .fab-menu__ico { animation: fabPulse 2.4s ease-in-out infinite; }
  .tabbar.is-open .fab-menu a:nth-child(2) .fab-menu__ico { animation-delay: 0.3s; }
  .fab-menu__lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; line-height: 1; white-space: nowrap; color: rgba(255,255,255,0.92); opacity: 0; transition: color 0.25s ease, opacity 0.12s ease; }
  .tabbar.is-open .fab-menu__lbl { opacity: 1; }
  .tabbar.is-open .fab-menu a:nth-child(1) .fab-menu__lbl { transition-delay: 0.85s; }
  .tabbar.is-open .fab-menu a:nth-child(2) .fab-menu__lbl { transition-delay: 0.95s; }
  .fab-menu a:hover, .fab-menu a:hover .fab-menu__lbl { color: #4DD0D3; }
  .fab-menu a:hover .fab-menu__ico { background-color: rgba(77,208,211,0.12); border-color: rgba(77,208,211,0.55); box-shadow: 0 0 14px rgba(77,208,211,0.3); }
  .fab-menu a:hover .fab-menu__ico svg { transform: scale(1.12) rotate(-6deg); }
  .tabbar.is-open .fab-menu a:active { transform: scale(0.92); }
  .fab-menu a:focus-visible { outline: 2px solid #4DD0D3; outline-offset: 4px; border-radius: 999px; }
}
@keyframes fabRipple {
  0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2.4); }
}
@keyframes fabPulse {
  0%, 100% { border-color: rgba(255,255,255,0.35); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.2), 0 0 0 0 rgba(77,208,211,0); }
  50%      { border-color: rgba(255,255,255,0.65); box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.25), 0 0 12px 0 rgba(77,208,211,0.35); }
}
@media (max-width: 599.98px) {
  .hdr__cta-long { display: none; }
  .hdr__cta-short { display: inline; }
}
@media (max-width: 359.98px) { .hdr__logo { flex-basis: 138px; } .hdr__logo img { max-width: 130px; } }

/* ---------- modali ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(18,18,18,0.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__panel { max-width: 540px; width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(18,18,18,0.28); display: flex; flex-direction: column; }
.modal__panel--login { max-width: 600px; overflow: hidden; }
.modal__panel--ok { max-width: 480px; align-items: center; text-align: center; padding: 48px 32px; }
.modal__panel--ok h2 { margin: 20px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.modal__panel--ok p { margin: 0 auto 24px; max-width: 380px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.modal__ok-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; background: var(--teal-ink); color: #fff; padding: 22px clamp(20px, 4vw, 30px); flex: none; }
.modal__head > div { display: grid; gap: 4px; }
.modal__head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.modal__head p { margin: 0; font-size: 14px; line-height: 1.45; color: #CFE6E6; }
.modal__x { flex: none; width: 40px; height: 40px; border: none; border-radius: 100px; background: rgba(255,255,255,0.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.modal__x:hover { background: rgba(255,255,255,0.28); }
.modal__body { padding: clamp(20px, 4vw, 28px); gap: 16px; }
.modal__body .field input, .modal__body .field textarea { background: #fff; min-height: 50px; padding: 12px 14px; }
.modal__body .field textarea { min-height: 110px; }
.modal__body .field label { font-weight: 800; }
.modal__frame { display: block; width: 100%; height: min(640px, calc(100dvh - 140px)); border: 0; flex: 1 1 auto; }
