/*
Theme Name: Serra Assicurazioni
Theme URI: https://serraassicurazioni.com
Author: Simone Serra
Author URI: https://serraassicurazioni.com
Description: Tema sartoriale italiano per Serra Assicurazioni — Vittoria Assicurazioni Terni
Version: 14.1
License: Private
Text Domain: serra-assicurazioni
*/

/* ===========================================================
   DESIGN TOKENS — Sartoriale italiano
   =========================================================== */
:root {
  --navy: #0B1D3A;
  --navy-mid: #142952;
  --navy-light: #1E3A6E;
  --gold: #C9A84C;
  --gold-light: #E4C878;
  --gold-pale: #F5E9C4;
  --cream: #FAF7F0;
  --cream-soft: #F4EFE2;
  --white: #FFFFFF;
  --text-dark: #0B1D3A;
  --text-mid: #3D5A8A;
  --text-muted: #7A8FAD;
  --border: #D4C9A8;
  --border-soft: rgba(212, 201, 168, 0.4);
  --success-bg: #EAF3DE;
  --success-text: #27500A;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(11, 29, 58, 0.04);
  --shadow-md: 0 6px 20px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 12px 36px rgba(11, 29, 58, 0.12);
}

/* ===========================================================
   RESET & BASE
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); transition: color .2s; }
a:hover { color: var(--gold); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===========================================================
   TIPOGRAFIA
   =========================================================== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 4.5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 10px; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); font-weight: 600; }

p { font-size: 15px; line-height: 1.75; color: var(--text-mid); font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-name em { font-style: italic; color: var(--gold); font-weight: 500; }
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
}
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  transition: color .15s;
}
.nav-links a:hover { color: var(--gold); }

.btn-nav {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .2s, transform .15s;
}
.btn-nav:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
}

/* Logo wrap legacy (retro-compatibilità con header vecchio) */
.logo-wrap { display: flex; flex-direction: column; gap: 2px; }
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ===========================================================
   HERO — Homepage e pagine prodotto
   =========================================================== */
.hero {
  background: var(--navy);
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1, .hero h2 { color: var(--white); }
.hero h1 em { color: var(--gold-light); }
.hero p { color: rgba(255,255,255,0.65); font-size: 16px; font-weight: 300; max-width: 540px; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }

/* Hero homepage (2 colonne con foto) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-grid > div:first-child { max-width: 540px; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Hero pagina singola (centered) */
.hero-single {
  text-align: left;
  max-width: 760px;
}

/* CTA buttons hero */
.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn-primary,
.btn-secondary,
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .2s, transform .15s, color .2s;
}
.btn-primary, .hero-cta {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover, .hero-cta:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* ===========================================================
   STATS BAR
   =========================================================== */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}
.stat {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}
.stat:last-child { border-right: none; }
.stat-number,
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===========================================================
   SECTION GENERICA
   =========================================================== */
.section {
  padding: 90px 0;
}
.section-soft { background: var(--cream-soft); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-header .eyebrow {
  justify-content: center;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { margin: 0 auto; }

/* ===========================================================
   SERVICES GRID — Homepage
   =========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--gold);
}
.service-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--navy);
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: gap .2s, color .2s;
}
.service-card:hover .service-arrow { color: var(--gold-light); }

/* ===========================================================
   COVERAGE GRID — Pagine prodotto (rc-auto, casa, ecc.)
   =========================================================== */
.coverages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.coverage-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.coverage-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.coverage-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.coverage-card:hover::after { opacity: 1; }

.coverage-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--gold);
}
.coverage-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--navy);
}
.coverage-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================================================
   WHY GRID — "Perché scegliermi"
   =========================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  align-items: flex-start;
}
.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}
.why-text {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===========================================================
   BREADCRUMB
   =========================================================== */
.breadcrumb {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 0;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--text-mid);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep {
  margin: 0 10px;
  color: var(--border);
}

/* ===========================================================
   CTA SECTION
   =========================================================== */
.cta-section {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section h2 em { color: var(--gold-light); }
.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 300;
}
.cta-section .btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.cta-section .btn-primary:hover {
  background: var(--gold-light);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand-col { max-width: 280px; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand span {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: 10px;
  list-style: none;
}
.footer-list a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color .2s;
}
.footer-list a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* Footer legacy (retro-compatibilità) */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-inner a:hover { color: var(--gold-light); }

/* ===========================================================
   PRODUCT DETAIL / TEXT BLOCKS
   =========================================================== */
.text-block {
  max-width: 760px;
  margin: 0 auto;
}
.text-block h2 { margin-bottom: 18px; }
.text-block p { margin-bottom: 16px; }
.text-block ul {
  margin-bottom: 18px;
  padding-left: 0;
  list-style: none;
}
.text-block ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
}
.text-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

/* ===========================================================
   BADGES
   =========================================================== */
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--cream-soft);
  color: var(--navy);
  border: 1px solid var(--border-soft);
}
.badge-blue {
  background: rgba(11, 29, 58, 0.08);
  color: var(--navy);
  border-color: rgba(11, 29, 58, 0.15);
}
.badge-gray {
  background: rgba(122, 143, 173, 0.1);
  color: var(--text-mid);
  border-color: rgba(122, 143, 173, 0.2);
}
.badge-gold {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.3);
}

/* ===========================================================
   GOLD BUTTON (alternativo)
   =========================================================== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background .2s, transform .15s;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ===========================================================
   CATEGORIE / GRID GENERICHE
   =========================================================== */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.categoria-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.categoria-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.categoria-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.categoria-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
}

/* ===========================================================
   INTRO BLOCK (testo centrato narrativo)
   =========================================================== */
.intro-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.intro-block .eyebrow { display: inline-flex; }
.intro-block h2 { margin-bottom: 18px; }
.intro-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ===========================================================
   EDITORIAL LIST — Numerazione romana I-V per pagine prodotto
   =========================================================== */
.editorial-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.editorial-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.editorial-item:first-child { border-top: none; padding-top: 8px; }
.editorial-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 56px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.editorial-body { padding-top: 8px; }
.editorial-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.editorial-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.15;
}
.editorial-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}
.editorial-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 18px;
  max-width: 620px;
}
.editorial-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.editorial-bullets li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  list-style: none;
}
.editorial-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.editorial-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--gold);
  letter-spacing: 0.02em;
  transition: gap .2s, color .2s;
}
.editorial-cta:hover {
  color: var(--gold);
  gap: 12px;
}
.editorial-cta-strong {
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 4px;
  border-bottom: none;
}
.editorial-cta-strong:hover {
  background: var(--gold);
  color: var(--navy);
}
.editorial-featured {
  background: linear-gradient(180deg, transparent 0%, rgba(201,168,76,0.04) 100%);
  border-radius: var(--radius);
  padding-left: 24px;
  padding-right: 24px;
  border-top: 1px solid rgba(201,168,76,0.25);
}
.editorial-featured + .editorial-item { border-top: 1px solid var(--border-soft); }

/* ===========================================================
   STAT NUMBERS GRID — "Perché agire ora"
   =========================================================== */
.stat-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.stat-number-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.stat-number-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-big {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stat-suffix {
  font-size: 22px;
  color: var(--gold);
  font-style: italic;
  margin-left: 4px;
  font-weight: 600;
}
.stat-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.stat-number-card .stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Legacy why-num-* (retro-compatibilità) */
.why-num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-num-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.why-num-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1;
}
.why-num-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.why-num-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================================================
   SIM PROMO — Sezione promo simulatore (richiamo dal navy)
   =========================================================== */
.sim-promo {
  background: var(--navy);
  padding: 70px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.sim-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.sim-promo .container { position: relative; z-index: 2; }
.sim-promo-inner {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
}
.sim-promo h2 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 30px;
}
.sim-promo h2 em { color: var(--gold-light); }
.sim-promo p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0;
  font-weight: 300;
}

/* ===========================================================
   PRODOTTI LEGACY (retro-compatibilità classi vecchie)
   =========================================================== */
.prodotti-grid,
.polizze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.prodotto-card,
.polizza-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.prodotto-card:hover,
.polizza-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.prodotto-header {
  background: var(--navy);
  color: var(--white);
  padding: 24px;
  text-align: center;
}
.prodotto-header.ltc { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.prodotto-header.inv { background: linear-gradient(135deg, var(--navy) 0%, #1B4E2C 100%); }
.prodotto-header.pac { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.prodotto-header.ins { background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 200%); }
.prodotto-icon,
.polizza-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.prodotto-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.prodotto-subtitle {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prodotto-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prodotto-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.prodotto-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prodotto-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.prodotto-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 8px;
}
.prodotto-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dark);
}

/* ===========================================================
   FORM CARD
   =========================================================== */
.form-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color .2s, background .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-field input::placeholder { color: var(--text-muted); }

.form-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 600;
}

.privacy-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--cream);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.privacy-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.privacy-row label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mid);
  cursor: pointer;
}
.privacy-row a { color: var(--navy); }
.privacy-row a:hover { color: var(--gold); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.success-box {
  display: none;
  background: var(--success-bg);
  border: 1px solid #B8D49E;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  margin-top: 18px;
}
.success-box.show { display: block; }
.success-box h3 {
  color: var(--success-text);
  font-size: 18px;
  margin-bottom: 6px;
}
.success-box p {
  color: var(--success-text);
  font-size: 14px;
  margin: 0;
}

/* ===========================================================
   CTA BAND — Striscia WhatsApp finale
   =========================================================== */
.cta-band {
  background: var(--navy-mid);
  padding: 36px 0;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-text h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 4px;
}
.cta-text p {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin: 0;
  font-weight: 300;
}

/* ===========================================================
   CONTATTI
   =========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-value {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
  word-break: break-word;
}
.contact-value a { color: var(--navy); text-decoration: none; }
.contact-value a:hover { color: var(--gold); }

/* ===========================================================
   POLICY BODY (privacy, cookie)
   =========================================================== */
.policy-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
}
.policy-body h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 22px;
}
.policy-body h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 17px;
}
.policy-body p { margin-bottom: 14px; color: var(--text-mid); }
.policy-body ul { padding-left: 22px; margin-bottom: 16px; }
.policy-body li { margin-bottom: 6px; color: var(--text-mid); }

/* ===========================================================
   MODIFIER / UTILITY CLASSES
   =========================================================== */
.bordered {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.hidden { display: none !important; }

/* ===========================================================
   FOOTER — VITTORIA COMPLIANCE STRIP
   =========================================================== */
.ivass-strip {
  background: var(--navy-mid);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 10px 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: background .2s, color .2s, transform .15s;
}
.footer-socials a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.vittoria-strip {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}
.vittoria-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.vittoria-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-vittoria {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.3);
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-vittoria:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.vittoria-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vittoria-inline-links li {
  list-style: none;
  position: relative;
  padding-right: 20px;
}
.vittoria-inline-links li:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: 4px;
  color: rgba(255,255,255,0.25);
}
.vittoria-inline-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.vittoria-inline-links a:hover {
  color: var(--gold-light);
}

.myvittoria-app {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.myvittoria-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.app-badges {
  display: flex;
  gap: 8px;
}
.app-badge {
  display: inline-block;
  transition: opacity .2s, transform .15s;
}
.app-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.app-badge svg {
  display: block;
}

/* Area Riservata nav link */
.nav-riservata,
.nav-links .nav-riservata {
  color: var(--gold) !important;
  font-weight: 500;
  border-left: 1px solid var(--border-soft);
  padding-left: 20px;
  margin-left: 4px;
}
.nav-riservata:hover {
  color: var(--navy) !important;
}

/* ===========================================================
   RECLAMI ADDRESS BOX
   =========================================================== */
.reclami-address {
  background: var(--cream-soft);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 20px 0 24px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
}
.reclami-address strong {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.reclami-address a { color: var(--navy); }
.reclami-address a:hover { color: var(--gold); }

/* ===========================================================
   COMPLIANZ AUTO-GENERATED COOKIE TABLE
   =========================================================== */
.cmplz-cookies-wrapper {
  margin: 20px 0 32px;
  font-size: 13px;
}
.cmplz-cookies-wrapper h3,
.cmplz-cookies-wrapper .cmplz-service {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 8px;
}
.cmplz-cookies-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 12px;
}
.cmplz-cookies-wrapper th,
.cmplz-cookies-wrapper td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.cmplz-cookies-wrapper th {
  background: var(--cream-soft);
  font-weight: 500;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 11px;
}
/* Complianz "manage consent" button styled sartorial */
.cmplz-manage-consent,
.cc-revoke-custom,
[class*="cmplz-manage-consent"] a,
[class*="cmplz-manage-consent"] button {
  display: inline-block !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 12px 28px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .2s !important;
  font-family: 'DM Sans', sans-serif !important;
}
.cmplz-manage-consent:hover,
.cc-revoke-custom:hover,
[class*="cmplz-manage-consent"] a:hover,
[class*="cmplz-manage-consent"] button:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* ===========================================================
   MEDIA QUERIES
   =========================================================== */
@media (max-width: 900px) {
  .container { padding: 0 20px; }

  .nav-inner { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--border-soft);
    padding: 20px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .btn-nav { padding: 8px 16px; font-size: 12px; }
  .brand-sub { display: none; }

  .hero { padding: 70px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 360px; margin: 0 auto; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  .services-grid,
  .coverages-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 24px; }
  .stat:last-child { border-bottom: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Editorial list mobile */
  .editorial-item {
    grid-template-columns: 70px 1fr;
    gap: 20px;
    padding: 36px 0;
  }
  .editorial-num { font-size: 42px; }
  .editorial-title { font-size: 24px; }
  .editorial-featured {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Stat numbers mobile */
  .stat-numbers-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-big { font-size: 42px; }
  .stat-suffix { font-size: 18px; }

  .why-num-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why-num { font-size: 38px; }

  /* Sim promo mobile */
  .sim-promo-inner { grid-template-columns: 1fr; gap: 24px; }
  .sim-promo h2 { font-size: 24px; }

  /* Form mobile */
  .form-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }

  /* CTA band mobile */
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text h3 { font-size: 18px; }

  /* Vittoria compliance strip mobile */
  .vittoria-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .vittoria-links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vittoria-inline-links { gap: 6px 14px; }
  .vittoria-inline-links li { padding-right: 14px; }
  .btn-vittoria { width: 100%; text-align: center; }
  .myvittoria-app { width: 100%; flex-direction: column; align-items: flex-start; gap: 10px; }
  .app-badges { width: 100%; }
  .app-badge svg { max-width: 100%; height: auto; }
}

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
