/* ============================================
   Autoscuola Gianicolense — style.css
   Palette: blu profondo + accento giallo
   ============================================ */

:root {
  --blue-950: #0d1338;
  --blue-900: #1a2a5e;
  --blue-800: #243673;
  --blue-700: #2e44a8;
  --blue-600: #3b4fe4;
  --blue-100: #e7eafc;
  --blue-50:  #f4f6fe;
  --yellow:   #ffd452;
  --yellow-dark: #f0bd2d;
  --ink:      #1b2432;
  --grey:     #5b6676;
  --white:    #ffffff;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(13, 35, 64, 0.10);
  --shadow-sm: 0 4px 14px rgba(13, 35, 64, 0.08);
  --transition: 0.3s cubic-bezier(0.25, 0.6, 0.3, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

p { text-wrap: pretty; }

/* ---------- Skip link (accessibilità) ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--blue-900);
  color: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* Ancore non nascoste sotto l'header sticky */
[id] { scroll-margin-top: 96px; }

/* Tap ottimizzato e niente ritardo doppio-tap */
a, button, .btn, .nav-cta { touch-action: manipulation; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { line-height: 1.15; color: var(--blue-900); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--grey); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { margin-top: 0.9rem; font-size: 1.05rem; }

.bg-soft { background: var(--blue-50); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--blue-100);
  box-shadow: 0 2px 20px rgba(13, 35, 64, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.footer .logo-img { height: 48px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue-600); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue-800);
  color: var(--white) !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue-600); transform: translateY(-2px); }

/* ---------- Preloader (monogramma AG) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, var(--blue-700), var(--blue-900) 75%);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s 0.9s;
  clip-path: circle(150% at 50% 50%);
  will-change: clip-path, opacity;
}

.preloader-mark {
  width: min(150px, 34vw);
  fill: var(--white);
  animation: mark-pop 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.35));
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.5s ease;
}

.preloader-mark path:last-child { fill: var(--yellow); }

@keyframes mark-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* uscita: la macchia si chiude verso il centro + dissolvenza morbida */
.preloader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  filter: blur(4px);
}

.preloader-hide .preloader-mark {
  transform: scale(1.25);
  opacity: 0;
  animation: none;
}

body.is-loading { overflow: hidden; }

/* entrata morbida del contenuto quando il preloader finisce */
body.loaded main { animation: page-in 0.75s cubic-bezier(0.22, 0.9, 0.3, 1) both; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(14px) scale(0.994); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Tab bar mobile (stile app) ---------- */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--blue-100);
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(26, 42, 94, 0.10);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.45rem 0.2rem 0.35rem;
  text-decoration: none;
  color: var(--grey);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 12px;
  position: relative;
  transition: color var(--transition), transform 0.18s ease;
}

.tab:active { transform: scale(0.92); }

.tab svg { transition: transform var(--transition); }

.tab.active { color: var(--blue-800); }

.tab.active::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  width: 34px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--yellow);
}

.tab.active svg { transform: translateY(-1px); stroke: var(--blue-600); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--blue-900) 0%, var(--blue-700) 70%, var(--blue-600) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Home: foto di Roma al tramonto con overlay a gradiente blu */
.hero-home {
  background:
    linear-gradient(100deg,
      rgba(13, 19, 56, 0.92) 0%,
      rgba(20, 29, 82, 0.78) 34%,
      rgba(59, 79, 228, 0.40) 66%,
      rgba(59, 79, 228, 0.16) 100%),
    linear-gradient(0deg, rgba(13, 19, 56, 0.45), transparent 42%),
    url('../assets/img/hero-roma.jpg') center 58% / cover no-repeat;
}

/* "1974" gigante in filigrana, tagliato in basso a destra */
.hero-year {
  position: absolute;
  right: -1.5%;
  bottom: -9%;
  top: auto;
  transform: none;
  font-size: clamp(10rem, 30vw, 30rem);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.05em;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 212, 82, 0.10));
  -webkit-background-clip: text;
  background-clip: text;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  text-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 82, 0.20), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -240px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
  animation: spin 60s linear infinite;
  z-index: 1;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 8rem) 0;
  max-width: 660px;
}

.hero-home { min-height: min(82vh, 680px); display: flex; align-items: center; }

.hero h1 { color: var(--white); margin: 1.1rem 0 1.4rem; }
.hero h1 em { font-style: normal; color: var(--yellow); }

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 560px;
}

.hero .eyebrow { color: var(--yellow); }
.hero .eyebrow::before { background: var(--yellow); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 0, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 209, 0, 0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-3px); }
.btn svg { transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-900);
  box-shadow: 0 8px 24px rgba(255, 209, 0, 0.35);
}
.btn-yellow:hover { background: var(--yellow-dark); }

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-blue {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-blue:hover { background: var(--blue-600); }

/* ---------- Barra numeri ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2.6rem 0;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--blue-800);
  letter-spacing: -0.03em;
}

.stat strong em { font-style: normal; color: var(--yellow-dark); }
.stat > span { font-size: 0.92rem; color: var(--grey); font-weight: 500; }

/* ---------- Card ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  color: var(--blue-700);
  transition: background var(--transition), color var(--transition);
}

.card:hover .card-icon { background: var(--blue-800); color: var(--yellow); }

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-600);
  text-decoration: none;
}

.card-link svg { transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Sezione split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split-visual {
  background: linear-gradient(150deg, var(--blue-800), var(--blue-600));
  border-radius: 20px;
  padding: 2.8rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-visual::after {
  content: "";
  position: absolute;
  bottom: -110px;
  right: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.22), transparent 65%);
}

.split-visual h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 1.2rem; }

.split-visual ul { list-style: none; display: grid; gap: 0.9rem; position: relative; z-index: 1; }

.split-visual li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
}

.split-visual li svg { flex-shrink: 0; margin-top: 3px; color: var(--yellow); }

.check-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.6rem; }

.check-list li { display: flex; gap: 0.85rem; align-items: flex-start; }

.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-600); }

.check-list li strong { display: block; color: var(--blue-900); margin-bottom: 0.15rem; }
.check-list li p { font-size: 0.95rem; }

/* ---------- Testimonianze ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--blue-100);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.stars { color: var(--yellow-dark); font-size: 1rem; letter-spacing: 2px; }

/* Rating con stelle parziali */
.rating { display: inline-flex; align-items: center; gap: 0.55rem; }

.rating-stars {
  position: relative;
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(27, 36, 50, 0.16);
  white-space: nowrap;
}

.rating-stars::before {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--val, 100%);
  overflow: hidden;
  color: var(--yellow-dark);
  white-space: nowrap;
}

.rating-score { font-weight: 800; color: var(--blue-800); font-size: 0.98rem; }
.rating-score small { font-weight: 600; color: var(--grey); font-size: 0.78rem; }

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 4px 12px rgba(59, 79, 228, 0.28);
}

.quote-card blockquote { font-size: 0.98rem; color: var(--ink); font-style: italic; }

.quote-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-700);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(140deg, var(--blue-900), var(--blue-700));
  border-radius: 22px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 209, 0, 0.14), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(255, 209, 0, 0.10), transparent 42%);
}

.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 0.9rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.82); max-width: 520px; margin: 0 auto 2rem; }

/* ---------- Pagina: hero interno ---------- */
.page-hero {
  background: linear-gradient(150deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.15), transparent 65%);
}

.page-hero h1 { color: var(--white); margin-top: 0.9rem; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 620px; margin-top: 1.1rem; font-size: 1.1rem; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero .eyebrow::before { background: var(--yellow); }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-900);
  background: var(--yellow);
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.1rem;
}

.step h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; }

/* ---------- Tabella orari / info ---------- */
.info-box {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
}

.info-box h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.info-box h3 svg { color: var(--blue-600); }

.hours { list-style: none; display: grid; gap: 0.55rem; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--blue-100);
  color: var(--grey);
}

.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours li strong { color: var(--blue-900); font-weight: 600; }

.contact-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.7rem 0;
}

.contact-row svg { color: var(--blue-600); flex-shrink: 0; margin-top: 3px; }
.contact-row a { color: var(--blue-700); font-weight: 600; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.contact-row span { display: block; font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ---------- Docs list ---------- */
.doc-list { list-style: none; display: grid; gap: 0.8rem; }

.doc-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--blue-50);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.doc-list li svg { color: var(--yellow-dark); flex-shrink: 0; margin-top: 3px; }

/* ---------- Mappa ---------- */
.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(0.9);
}

/* Mappa a larghezza piena (full-bleed) */
.map-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 1.5rem;
}

.map-full .map-frame {
  height: clamp(380px, 52vh, 560px);
  border-radius: 0;
  box-shadow: none;
  display: block;
  filter: saturate(0.95);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer .logo { color: var(--white); margin-bottom: 1rem; }
.footer .logo span small { color: rgba(255, 255, 255, 0.55); }

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}

.footer ul { list-style: none; display: grid; gap: 0.6rem; }

.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.94rem; transition: color var(--transition); }
.footer a:hover { color: var(--yellow); }

.footer p { color: rgba(255, 255, 255, 0.74); font-size: 0.94rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom strong { color: rgba(255, 255, 255, 0.9); font-weight: 700; }

/* ---------- Animazioni scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero::after, .hero-badge .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* stile app: niente menu in alto, tab bar in basso */
  .tabbar { display: flex; }

  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

  .logo-img { height: 40px; }

  .hero-home { min-height: auto; }
  .hero-year {
    top: auto;
    bottom: 2%;
    right: -8%;
    transform: none;
    font-size: 34vw;
    line-height: 1;
  }

  .nav { height: 66px; justify-content: space-between; }

  .nav-links { gap: 0; }
  .nav-links li { display: none; }
  .nav-links li:last-child { display: block; }

  .nav-cta { padding: 0.5rem 1.1rem !important; font-size: 0.88rem; }

  .footer { padding-bottom: 1rem; }

  .hero-media { margin-top: 2.2rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Componenti visuali e micro-interazioni
   ============================================ */

/* ---------- Hero con foto ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.hero-grid .hero-inner { padding: 0; max-width: none; }

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.12);
}

.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--blue-900);
  font-size: 0.95rem;
  animation: floaty 5s ease-in-out infinite;
}

.float-badge small { display: block; font-weight: 600; color: var(--grey); font-size: 0.72rem; }

.float-badge .fb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--blue-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-anni { top: -22px; right: 8%; }
.fb-stelle { bottom: -20px; left: -6%; animation-delay: 2.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Page hero con immagine di sfondo ---------- */
.page-hero.has-photo {
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, rgba(26, 42, 94, 0.94) 30%, rgba(36, 54, 115, 0.72));
  pointer-events: none;
}

/* ---------- Card fotografiche ---------- */
.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-card:hover img { transform: scale(1.045); }

.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.4rem 1.1rem;
  background: linear-gradient(transparent, rgba(26, 42, 94, 0.88));
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.photo-card figcaption small { display: block; font-weight: 500; color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; }

.photo-offset {
  position: relative;
}

.photo-offset::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 20px;
  background: var(--yellow);
  z-index: -1;
}

/* ---------- Griglia punti di forza (infografica) ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.perk {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 1.3rem 1rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.35;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.perk:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}

.perk .perk-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.perk:hover .perk-icon {
  background: var(--yellow);
  color: var(--blue-900);
  transform: rotate(8deg) scale(1.08);
}

/* ---------- Stepper interattivo ---------- */
.stepper-progress {
  height: 6px;
  background: var(--blue-100);
  border-radius: 3px;
  margin: 0 0 2rem;
  overflow: hidden;
}

.stepper-progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--blue-600), var(--yellow));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.steps .step { cursor: pointer; border: 1.5px solid var(--blue-100); }

.steps .step.active {
  border-color: var(--blue-600);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.steps .step.active::before { background: var(--blue-600); color: var(--white); }

/* ---------- FAQ (accordion) ---------- */
.faq { display: grid; gap: 0.9rem; max-width: 780px; }

.faq details {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--blue-600); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--blue-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); color: var(--yellow-dark); }

.faq .faq-body { padding: 0 1.4rem 1.25rem; font-size: 0.96rem; }

/* ---------- Sezione Nilde (interattiva) ---------- */
.nilde-wrap { position: relative; text-align: center; }

.nilde-img {
  width: min(380px, 78%);
  height: auto;
  margin-inline: auto;
  cursor: pointer;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.nilde-img:hover { transform: scale(1.03); }

.nilde-img.wiggle { animation: wiggle 0.55s ease; }

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg) scale(1.04); }
  60% { transform: rotate(2.6deg) scale(1.04); }
}

.bau {
  position: absolute;
  font-weight: 800;
  color: var(--blue-800);
  background: var(--yellow);
  padding: 0.35rem 0.85rem;
  border-radius: 999px 999px 999px 4px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  animation: bau-pop 1.1s ease forwards;
  pointer-events: none;
}

@keyframes bau-pop {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  20% { opacity: 1; transform: translateY(-4px) scale(1.05); }
  75% { opacity: 1; transform: translateY(-26px) scale(1); }
  100% { opacity: 0; transform: translateY(-44px) scale(0.9); }
}

.pat-counter { margin-top: 0.8rem; font-size: 0.9rem; color: var(--grey); font-weight: 600; }
.pat-counter strong { color: var(--blue-700); }

/* ---------- Badge "aperto ora" ---------- */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1.2rem;
}

.open-badge .dot { width: 9px; height: 9px; border-radius: 50%; }

.open-badge.is-open { background: rgba(51, 199, 137, 0.14); color: #147a4d; }
.open-badge.is-open .dot { background: #22b573; animation: pulse 2s ease-in-out infinite; }

.open-badge.is-closed { background: rgba(220, 76, 76, 0.12); color: #a33; }
.open-badge.is-closed .dot { background: #d64545; }

/* ---------- Gauge circolare (infografica) ---------- */
.gauge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.gauge svg { transform: rotate(-90deg); }

.gauge .track { stroke: var(--blue-100); }

.gauge .arc {
  stroke: var(--blue-600);
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.gauge.on .arc { stroke-dashoffset: 40.85; }

.gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--blue-800);
  font-size: 0.95rem;
}

.gauge-face { position: relative; width: 64px; height: 64px; flex-shrink: 0; }

.gauge p { font-size: 0.88rem; margin: 0; }

/* ---------- Tilt 3D sulle card ---------- */
.card, .quote-card { will-change: transform; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fb-stelle { left: 2%; }
  .photo-offset::after { inset: 12px -10px -10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  body.loaded main { animation: none; }
  .float-badge, .nilde-img.wiggle, .bau { animation: none; }
  .gauge .arc { transition: none; }
}

/* ============================================
   Timeline "percorso patente" con macchinina
   ============================================ */
.roadmap {
  position: relative;
  max-width: 720px;
  margin: 3.5rem auto 0;
  padding-left: 74px;
}

.road {
  position: absolute;
  left: 26px;
  top: 8px;
  bottom: 8px;
  width: 10px;
  border-radius: 10px;
  background: var(--blue-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* linea tratteggiata centrale della "strada" */
.road::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(var(--yellow) 0 9px, transparent 9px 20px);
  opacity: 0.55;
}

.road-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--blue-600), var(--yellow));
}

.road-car {
  position: absolute;
  left: 50%;
  top: 0;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 42, 94, 0.30);
  z-index: 4;
  transition: top 0.12s linear;
}

.rm-step {
  position: relative;
  margin-bottom: 1.6rem;
  min-height: 52px;
}

.rm-step:last-child { margin-bottom: 0; }

.rm-node {
  position: absolute;
  left: -63px;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--grey);
  z-index: 2;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.rm-step.active .rm-node {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
  transform: scale(1.1);
}

.rm-goal.active .rm-node {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue-900);
}

.rm-node-flag { color: var(--blue-700); }

.rm-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.rm-step.active .rm-card {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateX(4px);
}

.rm-card h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.rm-card p { font-size: 0.95rem; }

.rm-goal .rm-card {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  border-color: transparent;
}
.rm-goal .rm-card h3 { color: var(--white); }
.rm-goal .rm-card p { color: rgba(255, 255, 255, 0.85); }

/* ============================================
   Griglia servizi 2x2
   ============================================ */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.grid-2x2 .card { padding: 2.2rem; }

/* box servizio a tutta larghezza (monopattino) */
.card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.card-wide .card-icon { margin-bottom: 0; flex-shrink: 0; }
.card-wide-body { flex: 1; }
.card-wide-body h3 { margin-bottom: 0.4rem; }
.card-wide-body p { max-width: 62ch; }

/* ============================================
   Trasferimento di proprietà: doc allineati
   ============================================ */
.split-docs { align-items: stretch; }

.split-docs .photo-card {
  height: 100%;
  min-height: 320px;
}

.split-docs .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.docs-panel {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.docs-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.doc-list-lg {
  list-style: none;
  counter-reset: none;
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 0;
}

.doc-list-lg li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--blue-900);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.doc-list-lg li:hover {
  transform: translateX(4px);
  border-color: var(--yellow);
  background: var(--white);
}

.doc-list-lg li em { font-style: normal; font-weight: 500; color: var(--grey); }

.doc-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.docs-panel .btn { margin-top: auto; align-self: flex-start; }

/* ============================================
   Contatti: layout + box Parliamone + form
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.6rem;
  align-items: start;
}

.contact-side { display: grid; gap: 1.6rem; }

.tram-row .tram-badge { color: var(--blue-600); vertical-align: -2px; margin-right: 2px; }
.tram-row span { color: var(--blue-700); }

.contact-talk { display: flex; flex-direction: column; }

.talk-lead { margin-bottom: 1.4rem; font-size: 1rem; }

.talk-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.talk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.talk-item:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.talk-ic {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-800);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.talk-txt {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.02rem;
  word-break: break-word;
  min-width: 0;
}

.talk-txt small {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--grey);
  margin-bottom: 1px;
}

/* Form contatto rapido — box blu 3D */
.contact-form {
  position: relative;
  overflow: hidden;
  margin-top: 1.9rem;
  padding: 2rem 1.9rem 1.7rem;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--blue-800) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  box-shadow: 0 24px 48px rgba(26, 42, 94, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 82, 0.20), transparent 66%);
  pointer-events: none;
}

.contact-form > * { position: relative; z-index: 1; }

.cf-head {
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.3rem;
  font-size: 1.12rem;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.contact-form .field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid transparent;
  border-radius: 11px;
  padding: 0.8rem 0.95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  width: 100%;
}

.field textarea { resize: vertical; min-height: 92px; }

.field input::placeholder,
.field textarea::placeholder { color: #9aa4b4; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--yellow);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 212, 82, 0.35);
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.7rem;
  margin-bottom: 1rem;
}

.cf-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); text-align: center; margin: 0; }
.cf-note.ok { color: #ffe9a6; font-weight: 700; }

.title-tram {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.title-tram svg { color: var(--blue-600); }

/* ---------- Mappa con consenso (GDPR) ---------- */
.map-consent {
  min-height: clamp(380px, 52vh, 560px);
  background: linear-gradient(150deg, var(--blue-800), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.map-consent-inner {
  max-width: 440px;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

.map-consent svg { color: var(--yellow); }
.map-consent p { color: rgba(255, 255, 255, 0.88); margin: 0; }
.map-consent strong { color: var(--white); font-size: 1.05rem; }
.map-consent .card-link { color: rgba(255, 255, 255, 0.9); }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 500;
  width: min(680px, 92%);
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(13, 19, 56, 0.24);
  padding: 1.15rem 1.3rem;
  display: flex;
  gap: 1rem 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  animation: cookieUp 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes cookieUp {
  from { opacity: 0; transform: translate(-50%, 22px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.cookie-banner { transform: translateX(-50%); }
.cookie-banner p { font-size: 0.9rem; margin: 0; flex: 1 1 300px; color: var(--grey); line-height: 1.55; }
.cookie-banner p strong { color: var(--blue-900); }
.cookie-banner a { color: var(--blue-600); font-weight: 700; text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-actions .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn-soft { background: var(--blue-100); color: var(--blue-800); }
.btn-soft:hover { background: var(--blue-50); }

@media (max-width: 760px) {
  .cookie-banner { bottom: calc(82px + env(safe-area-inset-bottom)); padding: 1rem 1.1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Pagina legale ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.legal p, .legal li { color: var(--grey); line-height: 1.75; }
.legal ul { margin: 0.6rem 0 1.1rem 1.2rem; display: grid; gap: 0.45rem; }
.legal a { color: var(--blue-600); font-weight: 600; }
.legal strong { color: var(--blue-900); }
.legal-updated { font-size: 0.85rem; color: var(--grey); font-weight: 600; }
.legal-note {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  background: var(--blue-50);
  border-left: 3px solid var(--yellow);
  border-radius: 10px;
  font-size: 0.9rem;
}

/* ============================================
   Responsive nuovi componenti
   ============================================ */
@media (max-width: 860px) {
  .grid-2x2 { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; align-items: flex-start; gap: 0; }
  .card-wide .card-icon { margin-bottom: 1.3rem; }
  .split-docs { grid-template-columns: 1fr; }
  .split-docs .photo-card { min-height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cf-row { grid-template-columns: 1fr; }
  .roadmap { padding-left: 62px; }
  .rm-node { left: -55px; }
  .road { left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .road-car { transition: none; }
}

/* ---------- Mappa statica cliccabile (cookie-free) ---------- */
.static-map {
  position: relative;
  display: block;
  height: clamp(340px, 46vh, 480px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  border: 1px solid var(--blue-100);
}
.static-map-bg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.6s ease; }
.static-map:hover .static-map-bg { transform: scale(1.04); }
.static-map-pin {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -100%);
  animation: pinDrop 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both;
  filter: drop-shadow(0 8px 10px rgba(13, 19, 56, 0.3));
}
@keyframes pinDrop {
  0% { opacity: 0; transform: translate(-50%, -165%); }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}
.static-map-card {
  position: absolute; left: 1.1rem; bottom: 1.1rem;
  background: #fff; border-radius: 12px; padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm); display: grid; gap: 0.15rem;
  max-width: min(360px, 82%);
}
.static-map-card strong { color: var(--blue-900); font-size: 0.98rem; }
.static-map-card span { color: var(--grey); font-size: 0.86rem; }
.static-map-cta {
  position: absolute; right: 1.1rem; top: 1.1rem;
  background: var(--blue-800); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: 0.88rem;
  display: inline-flex; gap: 0.4rem; align-items: center;
  box-shadow: var(--shadow-sm); transition: background 0.3s, transform 0.3s;
}
.static-map:hover .static-map-cta { background: var(--blue-600); transform: translateY(-2px); }
.static-map:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }

/* ---------- Checkbox consenso privacy nel form (su sfondo blu) ---------- */
.cf-consent { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0.2rem 0 0.2rem; }
.cf-consent input {
  margin-top: 0.15rem;
  width: 19px; height: 19px;
  flex-shrink: 0;
  accent-color: var(--yellow);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.cf-consent label { font-size: 0.88rem; color: var(--white); line-height: 1.55; font-weight: 500; }
.cf-consent a { color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cf-consent a:hover { color: #fff; }

/* ---------- Footer: link legali ---------- */
.footer-legal-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-legal-links a:hover { color: var(--yellow); }
