/* =========================================================================
   Self Storage Solution - base.css
   Design system: tokens, reset, tipografia, layout, nav, footer, UI, motion.
   Palette: rosso #EE1E23 · oro #F5B301 · bianco · antracite #0D0D0F
   ========================================================================= */

:root {
  /* Colori brand */
  --red: #ee1e23;
  --red-600: #d3171c;
  --red-700: #b01217;
  --red-glow: rgba(238, 30, 35, 0.15);
  --red-subtle: rgba(238, 30, 35, 0.06);
  --red-border: rgba(238, 30, 35, 0.20);
  
  --gold: #ffff00;       /* Giallo brillante di Affittobox */
  --gold-600: #fff06a;   /* Giallo soft su hover */
  --yellow-glow: rgba(255, 255, 0, 0.15);

  /* Neutri */
  --ink: #1a1a1a;        /* Grigio scuro elegante di Affittobox (ex #0d0d0f) */
  --ink-soft: #222222;   /* Grigio scuro card */
  --ink-700: #2a2a2a;    /* Grigio scuro elevato */
  --paper: #ffffff;
  --paper-2: #f7f7f7;    /* Grigio chiaro pulito (ex #f6f6f4) */
  --line: #e6e6e2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --muted: #6b6c72;
  --muted-dark: rgba(255, 255, 255, 0.64);

  /* Tipografia */
  --font-display: "Montserrat", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spaziatura / layout */
  --container: 1400px;
  --gutter: 24px;
  --section-y: 120px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-card: 28px;

  /* Effetti */
  --shadow-sm: 0 1px 2px rgba(13, 13, 15, 0.06);
  --shadow-md: 0 18px 40px -24px rgba(13, 13, 15, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(13, 13, 15, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.35s;
  --dur-slow: 0.6s;
  --dur-reveal: 0.8s;
  --nav-h: 76px;

  /* Hover micro-interactions: curve istituzionale, acceleration & deceleration bilanciate.
     Valori hardcoded (no var() annidate nello shorthand transition) per compatibilita cross-browser. */
  --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-duration: 0.35s;
  --hover-duration-fast: 0.2s;

  /* Pre-composed transition lists per card/bottoni hover-animated.
     Sostituisce `transition: all` e var() annidate con lista esplicita di proprieta.
     opacity e' escluso: e' gestito da @keyframes revealEntry, non da transition. */
  --transition-card: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-card-fast: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --section-y: 160px; } }

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

/* --------------------------- Tipografia -------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.h-display { font-size: clamp(3rem, 1.6rem + 6.6vw, 7.5rem); line-height: 0.95; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.55; color: var(--muted); }
.mono { font-family: var(--font-mono); font-weight: 500; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
  display: inline-block;
  border-radius: 1px;
}
.kicker.is-gold { color: var(--gold-600); }
.kicker.is-gold::before { background: var(--gold); }
.kicker.on-dark { color: #fff; }
.kicker.on-dark::before { background: var(--red); }

.text-red { color: var(--red); }
.text-gold { color: var(--gold); }

/* ----------------------------- Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; contain: layout style; background: var(--paper); }
.section--story-chi-siamo {
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--red-border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 30, 35, 0.12), transparent 65%),
    linear-gradient(180deg, var(--paper) 0%, rgba(238, 30, 35, 0.06) 100%);
}
.section--dark { background: var(--ink); color: #fff; }
.section--dark .lead { color: var(--muted-dark); }
.section--red { background: var(--red); color: #fff; }
.section--red .h2, .section--red h2, .section--red p, .section--red .lead { color: #fff; }
/* Fascia "prova sul campo": sezione staccata, tinta rossa tenue e filetti */
.section--proof {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--red-border);
  border-bottom: 1px solid var(--red-border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(238, 30, 35, 0.12), transparent 65%),
    linear-gradient(180deg, var(--paper) 0%, rgba(238, 30, 35, 0.06) 100%);
}
.section--proof .section-head { margin-bottom: 0; }

.section--paper2 {
  background: 
    radial-gradient(circle at top left, rgba(238, 30, 35, 0.05), transparent 40rem),
    radial-gradient(circle at bottom right, rgba(255, 255, 0, 0.03), transparent 40rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .h2 { margin-top: 0.8rem; }
.grid { display: grid; gap: var(--gutter); }
.grid--2col { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----------------------------- Bottoni --------------------------------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em;
  border-radius: 100px;
  border: 1.5px solid var(--bg);
  transition: var(--transition-card);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red-600); border-color: var(--red-600); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(238, 30, 35, 0.6); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.btn--ink:hover { background: #000; border-color: #000; box-shadow: none; }
.btn--white { --bg: #fff; --fg: var(--red); background: #fff; color: var(--red); border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { background: #f4f4f4; border-color: #f4f4f4; color: var(--red-600); transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.4); }
}
.btn--lg { padding: 1.1em 1.9em; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; color: var(--red);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(4px); } }
.section--dark .link-arrow { color: var(--gold); }

/* ----------------------------- Header ---------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1.5rem; }
.header__brand { display: flex; align-items: center; gap: 0.7rem; z-index: 2; }
.header__brand img { height: 34px; width: auto; }
.brand-logo { transition: filter 0.35s var(--ease); }
.header__nav { display: none; }
.header__cta { display: none; padding-block: 0.7em; }

.header.is-scrolled, .header.is-solid {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header.is-scrolled, .header.is-solid { background: rgba(255, 255, 255, 0.97); }
}
@media (max-width: 767px) {
  .header.is-scrolled, .header.is-solid { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
/* Header trasparente sopra hero scuro (solo su home) */
.header.on-hero:not(.is-scrolled) { color: #fff; }
.header.on-hero:not(.is-scrolled) .header__brand .brand-name { color: #fff; }

.nav-link { position: relative; font-weight: 600; font-size: 0.98rem; padding: 0.4rem 0; color: inherit; display: inline-flex; align-items: center; gap: 0.3em; white-space: nowrap; transition: color 0.25s var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--red); transition: width 0.3s var(--ease); }
.nav-link.is-active { color: var(--red); }
.nav-link.is-active::after { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--red); }
  .nav-link:hover::after { width: 100%; }
}

/* Dropdown nav (desktop) */
.nav-dropdown { position: relative; }
.nav-dropdown__caret { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 2px; transition: transform 0.25s var(--ease); }
.nav-dropdown.is-open .nav-dropdown__caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown:hover .nav-dropdown__caret { transform: rotate(180deg); }
}
.nav-dropdown__menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 0.45rem; min-width: 280px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  display: flex; flex-direction: column; gap: 0.1rem; z-index: 10;
}
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown.is-fading .nav-dropdown__menu {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.nav-dropdown__item {
  padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 500; border-radius: 6px;
  color: var(--ink); transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-dropdown__item:hover, .nav-dropdown__item.is-active { background: rgba(238, 30, 35, 0.08); color: var(--red); font-weight: 600; }
.mobile-menu a.is-active, .mobile-sublink.is-active { color: var(--red) !important; }
.nav-dropdown__item--all { font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 0.25rem; padding-bottom: 0.7rem; }

.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

/* Burger */
.burger { display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 2; }
.burger span { width: 24px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
/* Il backdrop-filter dell'header crea un containing block per i discendenti
   position:fixed. Senza questa riga il menu si ancora all'header (76px di
   altezza) invece che al viewport e il pannello risulta troncato. */
body.menu-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Il menu e figlio dell'header: senza questo rialzo copre logo e burger e
   non resta alcun modo di chiuderlo da mobile. */
body.menu-open .header__inner { position: relative; z-index: 95; color: #fff; }
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: var(--nav-h) var(--gutter) 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
  visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
/* I link sono elementi inline: senza colonna esplicita si affiancano appena
   il testo ci sta in larghezza. */
.mobile-menu nav { display: flex; flex-direction: column; align-items: stretch; }
.mobile-menu a { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 4.8vw, 1.75rem); line-height: 1.25; padding: 0.3rem 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 1.5rem; align-self: stretch; flex-shrink: 0; justify-content: center; text-align: center; padding: 1.15em 1.5em; }
.mobile-submenu { display: flex; flex-direction: column; gap: 0.1rem; padding-left: 1.2rem; margin-bottom: 0.5rem; }
.mobile-sublink { font-family: var(--font-sans) !important; font-weight: 500 !important; font-size: 0.95rem !important; line-height: 1.35 !important; padding: 0.25rem 0 !important; border-bottom: none !important; color: var(--muted-dark); }

@media (min-width: 1024px) {
  .header__nav { display: flex; gap: 2rem; align-items: center; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

/* --------------------------- Sticky call (mobile) ----------------------- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: #fff;
  box-shadow: 0 -10px 30px -16px rgba(0,0,0,0.5);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.sticky-call.is-visible { transform: translateY(0); }
.sticky-call a { display: flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.95rem; font-weight: 800; font-size: 0.95rem; }
.sticky-call a + a { background: var(--red); }
.sticky-call svg { width: 1.1em; height: 1.1em; }
@media (min-width: 1024px) { .sticky-call { display: none; } }

/* ----------------------- Phone links (telefono/cellulare) -------------- */
.phone-link { white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
.phone-tag { font-size: 0.78em; opacity: 0.7; transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.phone-link:hover { color: var(--red); }
.phone-link:hover .phone-tag { color: var(--red); opacity: 1; }
/* Footer has a red background: red-on-red would be invisible, so use the gold accent on hover. */
.footer .phone-link:hover,
.footer .phone-link:hover .phone-tag { color: var(--gold); opacity: 1; }

/* ----------------------------- Footer ---------------------------------- */
.footer { background: var(--red); color: #fff; padding-top: clamp(4rem, 8vw, 7rem); }
.footer a { color: #fff; transition: color var(--dur-fast) var(--ease); }
/* Tutti i testi del footer diventano gialli on hover (link e non-link), tranne il motto. */
.footer :is(a, h4, li, span, nav, p):hover { color: var(--gold); }
.footer__brand > p,
.footer__brand > p:hover,
.footer__brand > p *:hover { color: #fff; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3.5rem; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 1.2rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #ffe14d; margin-bottom: 1.1rem; font-weight: 600; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.25); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #fff; }
.footer__bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); color: #fff; }
.social a:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.social svg { width: 18px; height: 18px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 3rem; } }

/* ----------------------------- Form ------------------------------------ */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.field label .req { color: var(--red); margin-left: 0.15em; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(238, 30, 35, 0.12); }
.field--row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field--row { grid-template-columns: 1fr 1fr; } }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.partner-form .form-honeypot {
  position: absolute !important; left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; opacity: 0 !important; pointer-events: none !important;
}
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: var(--red); }

/* intlTelInput — adatta il widget allo stile del sito */
.iti { width: 100%; }
.iti .iti__flag-container { cursor: pointer; }
.iti .iti__selected-flag {
  padding: 0 0.6rem 0 0.8rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-right: 1px solid var(--line);
  height: 100%;
}
.iti .iti__selected-flag:hover,
.iti .iti__selected-flag:focus { background-color: rgba(238, 30, 35, 0.06); }
.iti .iti__selected-dial-code { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.iti .iti__country-list {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  max-height: 280px;
  font-size: 0.9rem;
}
.iti .iti__country-list .iti__country { padding: 0.5rem 0.8rem; }
.iti .iti__country-list .iti__country:hover,
.iti .iti__country-list .iti__country.iti__highlight { background-color: rgba(238, 30, 35, 0.08); }
.iti .iti__country-list .iti__dial-code { color: var(--muted); font-weight: 600; }
.iti .iti__search-input { width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; }
/* Il campo telefono dentro intl-tel-input mantiene lo stesso stile degli altri input */
.iti input[type="tel"] {
  width: 100%; padding: 0.85rem 1rem 0.85rem 5.5rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.iti input[type="tel"]:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(238, 30, 35, 0.12); }

/* ----------------------------- Motion ----------------------------------
   Reveal effects usano CSS @keyframes animation (NON transitions)
   cosi' `transition` su card/bottoni non viene override-ato dal reveal.
   Le hover transitions rimangono pulite e completamente componibili.

   Due varianti:
   - Image reveal (default): translateY + scale + opacity (per card, story, media)
   - Text reveal (.is-reveal-text): translateY solo + opacity (per text blocks)
     Più pulito e istituzionale, simile al reveal dell'hero.

   `both` fill mode: holds `from` during delay (no white flash) AND `to` after.
   ----------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px) scale(0.985); }
[data-reveal].is-in {
  animation: revealEntry 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Text variant: no scale, less translateY, slightly faster */
[data-reveal].is-reveal-text { opacity: 0; transform: translateY(20px); }
[data-reveal].is-reveal-text.is-in {
  animation: revealTextEntry 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-reveal-delay="1"] { animation-delay: 0.09s; }
[data-reveal-delay="2"] { animation-delay: 0.18s; }
[data-reveal-delay="3"] { animation-delay: 0.27s; }
[data-reveal-delay="4"] { animation-delay: 0.36s; }

@keyframes revealEntry {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes revealTextEntry {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Direction variants: horizontal reveal (left/right instead of default bottom-up).
   data-reveal-dir="left" → enters from left, data-reveal-dir="right" → from right.
   data-reveal-dir="top" → enters from above (top to bottom).
   Two-column rows: left column from left, right column from right. */
[data-reveal][data-reveal-dir="left"] { opacity: 0; transform: translateX(-80px) scale(0.985); }
[data-reveal][data-reveal-dir="right"] { opacity: 0; transform: translateX(80px) scale(0.985); }
[data-reveal][data-reveal-dir="top"] { opacity: 0; transform: translateY(-80px) scale(0.985); }
[data-reveal][data-reveal-dir="left"].is-in { animation: revealEntryLeft 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
[data-reveal][data-reveal-dir="right"].is-in { animation: revealEntryRight 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
[data-reveal][data-reveal-dir="top"].is-in { animation: revealEntryTop 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }

[data-reveal][data-reveal-dir="left"].is-reveal-text { opacity: 0; transform: translateX(-60px); }
[data-reveal][data-reveal-dir="right"].is-reveal-text { opacity: 0; transform: translateX(60px); }
[data-reveal][data-reveal-dir="top"].is-reveal-text { opacity: 0; transform: translateY(-60px); }
[data-reveal][data-reveal-dir="left"].is-reveal-text.is-in { animation: revealTextEntryLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
[data-reveal][data-reveal-dir="right"].is-reveal-text.is-in { animation: revealTextEntryRight 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
[data-reveal][data-reveal-dir="top"].is-reveal-text.is-in { animation: revealTextEntryTop 1s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes revealEntryLeft {
  from { opacity: 0; transform: translateX(-80px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes revealEntryRight {
  from { opacity: 0; transform: translateX(80px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes revealEntryTop {
  from { opacity: 0; transform: translateY(-80px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes revealTextEntryLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: none; }
}
@keyframes revealTextEntryRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: none; }
}
@keyframes revealTextEntryTop {
  from { opacity: 0; transform: translateY(-60px); }
  to { opacity: 1; transform: none; }
}

/* contenuto sempre visibile senza JS (SEO / AI-readiness) */
@media (scripting: none) { [data-reveal] { opacity: 1; transform: none; } }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow-num { font-family: var(--font-display); font-weight: 800; color: rgba(238,30,35,0.12); font-size: clamp(4rem, 12vw, 9rem); line-height: 0.8; }
.divider { height: 1px; background: var(--line); border: 0; }
.section--dark .divider { background: var(--line-dark); }

/* Scroll progress bar (pagina intera) */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--red); z-index: 200; transform: scaleX(0); transform-origin: left; will-change: transform; }

/* Preloader (logo video, 1x per sessione) */
.preloader { position: fixed; inset: 0; z-index: 300; background: #fff; display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader video { display: block; width: auto; height: auto; max-width: 520px; max-height: 70vh; }
@media (max-width: 760px) {
  .preloader video { max-width: 70vw; max-height: 50vh; margin: 0 auto; }
}

/* --------------------- Mobile scroll-hover fallback ---------------------
   Su touch devices (hover: none / pointer: coarse) gli effetti :hover
   non funzionano. Il JS clona le regole :hover in .is-scroll-hovered
   e attiva l'effetto quando la card e' al centro del viewport.
   ----------------------------------------------------------------------- */
