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

:root {
  --navy: #0B1F3A;
  --navy-mid: #122444;
  --navy-light: #1A3358;
  --gold: #D4A017;
  --gold-light: #F0C040;
  --white: #FFFFFF;
  --white-soft: #EEF2F8;
  --text-muted: #8FA8C8;
  --gold-line: #C8930E;
  --shadow: 0 8px 32px rgba(0,0,0,0.25);
  --shadow-hover: 0 12px 48px rgba(212,160,23,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* TEXTURE BACKGROUND */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* DECORATIVE BLOBS */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

/* GOLDEN LINE */
.gold-line {
  display: block;
  height: 2px;
  background: var(--gold);
  width: 100%;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,31,58,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212,160,23,0.2);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--white-soft);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(212,160,23,0.3);
}
.nav-cta:hover { 
  transform: translateY(-2px) scale(1.02); 
  box-shadow: 0 8px 25px rgba(212,160,23,0.4);
  background: var(--gold-light);
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  /* Immagine sfondo: edificio istituzionale/città */
  background: 
    linear-gradient(135deg, rgba(11,31,58,0.92) 0%, rgba(11,31,58,0.85) 50%, rgba(11,31,58,0.75) 100%),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,160,23,0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Decorative corner accents instead of blobs */
.hero::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  border-top: 2px solid rgba(212,160,23,0.3);
  border-right: 2px solid rgba(212,160,23,0.3);
  pointer-events: none;
}

.hero-corner-bl {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100px;
  height: 100px;
  border-bottom: 2px solid rgba(212,160,23,0.3);
  border-left: 2px solid rgba(212,160,23,0.3);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-title .accent {
  color: var(--gold-light);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 1.5rem auto 2.5rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(212,160,23,0.2);
}

.badge.outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.4);
  box-shadow: none;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(212,160,23,0.35);
  position: relative;
  overflow: hidden;
}
.hero-cta:hover { 
  background: var(--gold-light);
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 12px 40px rgba(212,160,23,0.5);
}

.hero-scroll {
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll::before, .hero-scroll::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(212,160,23,0.3);
}

/* AREE RICORSO - 4 CARD */
.aree {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  font-size: 1rem;
}

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

.area-card {
  background: var(--navy-mid);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 16px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.area-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.area-card:hover .area-image img {
  transform: scale(1.08);
}

.area-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--navy-mid), transparent);
}

.area-card .area-ente,
.area-card .area-nome,
.area-card .area-lista,
.area-card .area-tagline {
  padding: 0 1.75rem;
}

.area-card .area-ente {
  margin-top: 1rem;
}

.area-card .area-tagline {
  padding-bottom: 2rem;
  margin-top: auto;
}

.area-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(212,160,23,0.02) 10px,
    rgba(212,160,23,0.02) 20px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.area-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transition: height 0.3s ease;
  z-index: 2;
}

.area-card:hover::before { height: 4px; }
.area-card:hover { 
  border-color: rgba(212,160,23,0.4); 
  background: var(--navy-light);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Rimosse icone emoji - sostituite da immagini reali */

.area-ente {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.area-nome {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.area-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.area-lista li {
  font-size: 0.88rem;
  color: var(--white-soft);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.area-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

.area-tagline {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.area-tagline strong { color: var(--gold-light); font-style: normal; }

/* DIVISORE ORO */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  margin: 0;
}

/* COME FUNZIONA */
.come-funziona {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.come-funziona::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1200&q=60') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
  filter: grayscale(100%) contrast(1.2);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(212,160,23,0.1);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(212,160,23,0.2);
  line-height: 1;
  text-align: right;
  padding-top: 0.1rem;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* PERCHÉ NOI */
.perche {
  background: var(--navy-mid);
  border-top: 1px solid rgba(212,160,23,0.15);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  padding: 5rem 2rem;
}

.perche-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.perche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.perche-item {
  text-align: center;
}

.perche-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.perche-label {
  font-size: 0.9rem;
  color: var(--white-soft);
  line-height: 1.5;
}

/* FAQ */
.faq {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(212,160,23,0.12);
  transition: background 0.3s;
}

.faq-item:hover {
  background: rgba(212,160,23,0.03);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  text-align: left;
  padding: 1.3rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--gold-light); }

.faq-q-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  padding-bottom: 2px;
  background: rgba(212,160,23,0.05);
}

.faq-item.open .faq-q-icon { 
  transform: rotate(45deg); 
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* TESTIMONIANZE */
.testimonianze {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--navy-mid);
  border-top: 1px solid rgba(212,160,23,0.1);
  border-bottom: 1px solid rgba(212,160,23,0.1);
}

.testimonianze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonianza-card {
  background: var(--navy);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonianza-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212,160,23,0.3);
  box-shadow: var(--shadow-hover);
}

.testimonianza-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonianza-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testimonianza-info h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.testimonianza-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonianza-text {
  font-size: 0.95rem;
  color: var(--white-soft);
  line-height: 1.7;
  font-style: italic;
}

.testimonianza-text::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: -1rem;
}

.testimonianza-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* FAQ */
.faq-a {
  display: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  padding-bottom: 1.3rem;
}

.faq-item.open .faq-a { display: block; }

/* CTA FINALE */
.cta-finale {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Immagine sfondo: mano che scrive/documento */
  background: 
    linear-gradient(to bottom, rgba(11,31,58,0.9) 0%, rgba(11,31,58,0.85) 100%),
    url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920&q=80') center/cover no-repeat;
}

.cta-finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212,160,23,0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4a017' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-finale .hero-title { font-size: clamp(2rem, 5vw, 4rem); }
.cta-finale .hero-title .accent { display: inline; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-shadow: 0 4px 20px rgba(212,160,23,0.3);
}
.btn-primary:hover { 
  background: var(--gold-light);
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 8px 30px rgba(212,160,23,0.4);
}

.btn-outline {
  border: 1px solid rgba(212,160,23,0.5);
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212,160,23,0.1);
  transform: translateY(-2px);
  color: var(--white);
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(212,160,23,0.15);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold-light);
  font-weight: 700;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-note a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-note a:hover {
  color: var(--gold);
}

/* PAGINE LEGALI */
.page-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(212,160,23,0.1);
}

.page-header .container {
  max-width: 800px;
  margin: 0 auto;
}

.content-page {
  padding: 3rem 2rem 5rem;
}

.content-page .container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: var(--white-soft);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  color: var(--white-soft);
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--gold-light);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(212,160,23,0.2);
}

.cookie-table th {
  background: var(--navy);
  color: var(--gold);
  font-weight: 600;
}

.cookie-table td {
  color: var(--white-soft);
}

.cookie-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212,160,23,0.15);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CONTATTI */
.contatti {
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(212,160,23,0.2);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Fix per select - opzioni con sfondo scuro */
.form-group select option,
.form-group select optgroup {
  background: var(--navy-mid);
  color: var(--white);
  padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:focus {
  background: var(--gold);
  color: var(--navy);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15), inset 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  padding: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(212,160,23,0.3);
}
.form-submit:hover { 
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,160,23,0.4);
}
.form-submit:active {
  transform: translateY(0);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy-light);
  border-top: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 -10px 50px rgba(0,0,0,0.5);
}

.cookie-banner.show { 
  display: flex;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--white-soft);
  max-width: 700px;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner a:hover { color: var(--gold-light); }

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--navy);
}

.cookie-btn-accept:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(212,160,23,0.3);
}

.cookie-btn-reject:hover {
  border-color: var(--gold);
  color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Navigation mobile */
  nav {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(212,160,23,0.2);
    gap: 0.5rem;
  }

  .nav-links.active { display: flex; }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
  }

  .nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 6rem 1rem 3rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .hero-badges {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }

  /* Section mobile */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .section-intro {
    font-size: 0.95rem;
  }

  /* Aree grid mobile */
  .aree {
    padding: 3rem 1rem;
  }

  .aree-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .area-image {
    height: 140px;
  }

  /* Come funziona mobile */
  .come-funziona {
    padding: 3rem 1rem;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .step-num {
    font-size: 2rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  /* FAQ mobile */
  .faq {
    padding: 3rem 1rem;
  }

  .faq-q {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-a {
    padding: 0 1.25rem 1.25rem;
  }

  /* Testimonianze mobile */
  .testimonianze {
    padding: 3rem 1rem;
  }

  .testimonianze-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonianza-card {
    padding: 1.5rem;
  }

  /* Contatti mobile */
  .contatti {
    padding: 3rem 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* CTA finale mobile */
  .cta-finale {
    padding: 4rem 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  /* Footer mobile */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    gap: 0.75rem;
  }

  /* Cookie banner mobile */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 150px;
  }

  /* Pagine legali mobile */
  .page-header {
    padding: 5rem 1rem 2rem;
  }

  .content-page {
    padding: 2rem 1rem 3rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .legal-content h3 {
    font-size: 1rem;
  }

  .cookie-table {
    font-size: 0.8rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.5rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .aree-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonianze-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    padding: 0.75rem 1.5rem;
  }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
  }

  .area-image {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
