/* ============================================================
   SALVATORE CARDILE – Consulente Generali
   Palette: #C8102E | #3D2B1F | #C1693A | #F5EDE2 | #B8A99A
   ============================================================ */

/* ----- VARIABLES ----- */
:root {
  --red:       #C8102E;
  --red-dark:  #a30d25;
  --brown:     #3D2B1F;
  --orange:    #C1693A;
  --cream:     #F5EDE2;
  --taupe:     #B8A99A;
  --white:     #ffffff;
  --gray-100:  #f8f5f2;
  --gray-200:  #e8e2db;
  --gray-500:  #888078;
  --gray-600:  #5c554e;

  /* Testi su sfondi scuri – contrasto verificato */
  --text-on-dark:      #F0E8DE;   /* cream più caldo, 8.5:1 su --brown */
  --text-on-dark-muted:#C8BAB0;   /* 4.8:1 su --brown – ok per testo secondario */

  --shadow-sm: 0 2px 8px rgba(61,43,31,.07);
  --shadow-md: 0 8px 28px rgba(61,43,31,.11);
  --shadow-lg: 0 20px 56px rgba(61,43,31,.15);
  --radius:    10px;
  --radius-lg: 18px;
  --transition: 0.28s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overscroll-behavior: none; }
body {
  font-family: var(--font-sans);
  color: var(--brown);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  overscroll-behavior: none;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----- TYPOGRAPHY UTILITIES ----- */
.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
  display: block;
}
.section-eyebrow--light { color: #e8855a; } /* arancio più chiaro per sfondi scuri */

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.text-accent { color: var(--red); }

/* ----- LAYOUT ----- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--lg { padding: .9rem 1.9rem; font-size: 1rem; }
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,.28);
}
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(240,232,222,.4);
}
.btn--ghost:hover {
  border-color: var(--text-on-dark);
  background: rgba(240,232,222,.1);
}
.btn--nav {
  background: var(--red);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  font-size: .88rem;
  border-radius: 50px;
}
.btn--nav:hover { background: var(--red-dark); }

/* ----- NAVBAR ----- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(37,25,15,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240,232,222,.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.navbar__logo-icon {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .95rem;
  flex-shrink: 0;
}
.navbar__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.15;
}
.navbar__tagline {
  display: block;
  font-size: .7rem;
  color: var(--text-on-dark-muted);
  letter-spacing: .04em;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.navbar__links a {
  color: var(--text-on-dark-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--text-on-dark); }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all .22s;
}

/* ----- FLASH MESSAGES ----- */
.messages-bar {
  position: fixed;
  top: 78px; left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: 90%;
  max-width: 520px;
}
.message {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideDown .35s ease;
}
.message--success { background: var(--brown); color: var(--text-on-dark); }
.message--error   { background: var(--red);   color: #fff; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #28180e 0%, var(--brown) 55%, #4d3525 100%);
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 25% 60%, rgba(200,16,46,.13) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 30%, rgba(193,105,58,.09) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,16,46,.18);
  color: #e8855a;               /* arancio chiaro – 4.6:1 su dark bg */
  border: 1px solid rgba(200,16,46,.3);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.hero__title--accent { color: #e8855a; }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero__cta {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero__wave svg { display: block; width: 100%; }

/* ----- STATS BAR ----- */
.stats-bar {
  background: var(--cream);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.stats-bar__item { position: relative; }
.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--gray-200);
}
.stats-bar__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: .3rem;
}
.stats-bar__label {
  font-size: .85rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ----- ABOUT ----- */
.about {
  padding: 6rem 0;
  background: var(--white);
}

/* Griglia foto + bio */
.about__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Colonna foto */
.about__photo-col { position: relative; }
.about__photo-frame {
  position: sticky;
  top: 90px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--cream), #e0d4c8);
  aspect-ratio: 3/4;
}
.about__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about__photo-frame--fallback .about__photo { display: none; }
.about__photo-placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--taupe);
}
.about__photo-frame--fallback .about__photo-placeholder { display: flex; }

/* Capsula mobile sotto la foto – nascosta su desktop */
.about__mobile-badge {
  display: none;
  margin-top: .85rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(200,16,46,.07);
  border: 1px solid rgba(200,16,46,.18);
  border-radius: 50px;
  padding: .45rem 1rem;
}
.about__mobile-badge i { font-size: .85rem; }

/* Colonna bio */
.about__content-col { min-width: 0; }
.about__lead {
  font-size: 1.08rem;
  color: var(--brown);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: .9rem;
}
.about__body {
  color: var(--gray-600);
  line-height: 1.8;
}
.about__body strong { color: var(--brown); }

/* Quote – full container width */
.about__quote {
  background: var(--gray-100);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.75rem;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.75;
  font-size: .97rem;
  margin-bottom: 2rem;
}
.about__quote i {
  color: var(--red);
  font-size: .9rem;
  margin-right: .35rem;
  vertical-align: middle;
  opacity: .7;
}

/* 4 box valori – full container width, 4 colonne */
.about__values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.about__value-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.about__value-icon {
  width: 38px; height: 38px;
  background: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}
.about__value-item strong {
  display: block;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .15rem;
  font-size: .9rem;
}
.about__value-item p {
  font-size: .83rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ----- SERVIZI ----- */
.servizi {
  padding: 6rem 0;
  background: var(--gray-100);
}
.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.servizi__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.servizi__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.servizi__card--cta {
  background: var(--brown);
  border-color: transparent;
}
/* specificità doppia per battere .servizi__card h3 / p */
.servizi__card.servizi__card--cta h3 { color: var(--text-on-dark); }
.servizi__card.servizi__card--cta p  { color: var(--text-on-dark-muted); }
.servizi__card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.servizi__card-icon--red    { background: rgba(200,16,46,.1);  color: var(--red); }
.servizi__card-icon--orange { background: rgba(193,105,58,.1); color: #a85428; }
.servizi__card-icon--dark   { background: rgba(61,43,31,.08);  color: var(--brown); }
.servizi__card-icon--light  { background: rgba(240,232,222,.15); color: #e8855a; }
.servizi__card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: .5rem;
}
.servizi__card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: .9rem;
}
.servizi__list { display: flex; flex-direction: column; gap: .35rem; }
.servizi__list li {
  font-size: .84rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.servizi__list i { color: var(--red); font-size: .65rem; }

/* Bottone scopri di più */
.servizi__toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  background: none;
  border: none;
  color: var(--red);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
  transition: gap var(--transition), opacity var(--transition);
}
.servizi__toggle:hover { gap: .65rem; }
.servizi__toggle i { font-size: .72rem; }

/* Modal servizi */
.smodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,18,10,.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay .2s ease;
}
.smodal-overlay[hidden] { display: none; }
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.smodal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUpModal .25s ease;
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.smodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.smodal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin: 0;
}
.smodal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--taupe);
  font-size: 1.1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.smodal-close:hover { background: var(--gray-200); color: var(--brown); }
.smodal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.smodal-body .servizi__subgroup-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--taupe);
  margin-top: .6rem;
  margin-bottom: 0;
}
.smodal-body .servizi__subitem {
  padding: .65rem .9rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}
.smodal-body .servizi__subitem h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: .2rem;
  font-family: var(--font-sans);
}
.smodal-body .servizi__subitem p {
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 0;
}
body.modal-open { overflow: hidden; }

/* ----- STATISTICHE / GRAFICI ----- */
.statistiche {
  padding: 6rem 0;
  background: var(--white);
}
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.chart-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.chart-card:hover { box-shadow: var(--shadow-md); }
.chart-card__header {
  padding: 1.4rem 1.6rem .9rem;
  border-bottom: 1px solid var(--gray-200);
}
.chart-card__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .2rem;
}
.chart-card__header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 1;
}
.chart-card__header h3 i { color: var(--red); font-size: .95rem; }
.chart-card__header p {
  font-size: .8rem;
  color: var(--gray-500);
}

/* Pulsante ⓘ */
.chart-info-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--taupe);
  font-size: .95rem;
  padding: 2px 4px;
  border-radius: 5px;
  transition: color var(--transition);
  line-height: 1;
  margin-top: 1px;
}
.chart-info-btn:hover,
.chart-info-btn--active { color: var(--red); }

/* Pannello info a scomparsa */
.chart-info-panel {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: .85rem 1.6rem;
  font-size: .8rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.chart-info-panel[hidden] { display: none; }
.chart-info-panel strong { color: var(--brown); }

.chart-card__body {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

/* ----- CONTATTO ----- */
.contatto {
  padding: 6rem 0;
  background: var(--gray-100);
}
.contatto__inner {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 4rem;
  align-items: start;
}
.contatto__info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brown);
  margin-bottom: .6rem;
}
.contatto__info > p {
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-size: .97rem;
}
.contatto__details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.contatto__detail-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.contatto__detail-icon {
  width: 38px; height: 38px;
  background: var(--cream);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: .9rem;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}
.contatto__detail-item strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-500);
  margin-bottom: .1rem;
}
.contatto__detail-item span {
  font-size: .93rem;
  color: var(--brown);
  font-weight: 500;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--brown);
  color: var(--text-on-dark);
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .86rem;
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 1.5rem;
}
.social-btn:hover { background: var(--red); transform: translateY(-2px); }
.contatto__generali-badge {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: .85rem 1rem;
}
.contatto__generali-badge > i { font-size: 1.4rem; color: var(--red); }
.contatto__generali-badge strong { display: block; font-size: .93rem; }
.contatto__generali-badge small { font-size: .76rem; color: var(--gray-500); }

/* Form */
.contatto__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--gray-600);
}
.form-control {
  width: 100%;
  padding: .7rem .95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .93rem;
  color: var(--brown);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.09);
}
.form-control::placeholder { color: #bbb3ab; }
textarea.form-control { resize: vertical; }
.form-control--error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(200,16,46,.12) !important;
}
.form-error { font-size: .78rem; color: var(--red); margin-top: .15rem; }
.form-feedback {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .5rem;
  animation: slideDown .3s ease;
}
.form-feedback--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-feedback--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6c6;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.form-privacy {
  font-size: .78rem;
  color: var(--gray-500);
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  max-width: 260px;
  line-height: 1.5;
}
.form-privacy i { margin-top: .15rem; flex-shrink: 0; }
.btn--submit { flex-shrink: 0; }

/* ----- FOOTER ----- */
.footer {
  background: #211408;  /* leggermente più scuro del brown per contrasto */
  padding: 2.75rem 0;
  border-top: 1px solid rgba(240,232,222,.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: .7rem; }
.footer__icon  { font-size: 1.4rem; color: var(--red); }
.footer__name  {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-on-dark);
  font-weight: 700;
}
.footer__sub   { font-size: .78rem; color: var(--text-on-dark-muted); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a {
  font-size: .86rem;
  color: var(--text-on-dark-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text-on-dark); }
.footer__legal {
  font-size: .78rem;
  color: var(--text-on-dark-muted);
  text-align: right;
  line-height: 1.6;
}

/* ----- AOS – animate on scroll (nativo) ----- */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"]  { transform: translateX(20px); }
[data-aos="fade-left"].aos-animate  { transform: translateX(0); }

/* =====================================================
   RESPONSIVE
   1024px → tablet landscape
    768px → tablet portrait / large phone
    480px → phone
    360px → small phone
   ===================================================== */

/* --- TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
  /* Sezioni: meno respiro verticale */
  .about, .servizi, .statistiche, .contatto { padding: 4.5rem 0; }
  .stats-bar { padding: 2rem 0; }

  /* About: foto sopra, bio sotto */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
  .about__photo-frame {
    position: static;
    aspect-ratio: 4/3;
    max-height: 340px;
  }
  .about__values-grid { grid-template-columns: repeat(2, 1fr); }

  /* Servizi 2 colonne */
  .servizi__grid   { grid-template-columns: repeat(2, 1fr); }

  /* Contatto: info sopra, form sotto */
  .contatto__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- PHONE GRANDE (≤ 768px) --- */
@media (max-width: 768px) {
  /* Navbar menu a scomparsa */
  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #28180e;
    padding: 1.25rem 1.5rem;
    gap: .9rem;
    border-bottom: 1px solid rgba(240,232,222,.08);
    z-index: 999;
  }
  .navbar__links.open { display: flex; }
  .navbar__toggle     { display: flex; }

  /* Hero – eyebrow nascosto (compare vicino alla foto nell'about) */
  .hero { min-height: auto; padding: 88px 0 56px; }
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__eyebrow  { display: none; }
  .hero__title    { order: 1; }
  .hero__subtitle { order: 2; }
  .hero__cta      { order: 3; }
  /* Capsula: visibile sotto la foto nell'about */
  .about__mobile-badge { display: inline-block; }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sezioni */
  .about, .servizi, .statistiche, .contatto { padding: 3.5rem 0; }
  .stats-bar { padding: 1.75rem 0; }

  /* Section header */
  .section-header { margin-bottom: 2rem; }

  /* Stats: griglia 2×2, nascondi tutti i separatori */
  .stats-bar__inner { grid-template-columns: repeat(3, 1fr); }
  .stats-bar__item::after { display: none !important; }
  .stats-bar__value { font-size: 1.9rem; }

  /* About foto: altezza fissa contenuta */
  .about__photo-frame { aspect-ratio: 3/2; max-height: 260px; }

  /* Grafici: colonna singola, canvas altezza auto */
  .charts-grid     { grid-template-columns: 1fr; }
  .chart-card__body canvas { height: auto !important; max-height: 300px; }

  /* Form: colonna singola, tap target adeguati */
  .form-row        { grid-template-columns: 1fr; }
  .form-control    { padding: .85rem 1rem; min-height: 44px; font-size: 1rem; }
  .form-footer     { flex-direction: column; align-items: stretch; }
  .form-privacy    { max-width: 100%; }
  .btn--submit     { width: 100%; justify-content: center; }

  /* Footer */
  .footer          { padding: 2rem 0; }
  .footer__inner   { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__links   { flex-wrap: wrap; gap: 1rem; }
  .footer__legal   { text-align: left; }
}

/* --- PHONE (≤ 480px) --- */
@media (max-width: 480px) {
  /* Container: più respiro ai bordi su schermi stretti */
  .container { padding: 0 1.1rem; }

  /* Hero: riduco ulteriormente il titolo e il padding */
  .hero { padding: 90px 0 60px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: .95rem; }

  /* Stats a 2 colonne compatte */
  .stats-bar__inner { gap: .75rem; }
  .stats-bar__value { font-size: 1.7rem; }
  .stats-bar__label { font-size: .78rem; }

  /* About: foto compatta circolare su schermi molto piccoli */
  .about__inner     { margin-bottom: 1.5rem; }
  .about__photo-frame {
    aspect-ratio: 1/1;
    max-height: 130px;
    width: 130px;
    border-radius: 50%;
    margin: 0 auto;
  }

  /* Servizi: una sola colonna */
  .servizi__grid  { grid-template-columns: 1fr; }
  .servizi__card  { padding: 1.4rem; }

  /* Valori: una sola colonna */
  .about__values-grid { grid-template-columns: 1fr; }

  /* Quote: padding ridotto */
  .about__quote { padding: .9rem 1.1rem; }

  /* Chart canvas altezza massima su schermi piccoli */
  .chart-card__body canvas { max-height: 280px; }

  /* Sezioni ancora più compatte */
  .about, .servizi, .statistiche, .contatto { padding: 3rem 0; }

  /* Section title */
  .section-title { font-size: 1.6rem; }
  .section-header { margin-bottom: 1.75rem; }
}

/* --- SMALL PHONE (≤ 360px) --- */
@media (max-width: 360px) {
  .hero__title  { font-size: 1.75rem; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .stats-bar__value { font-size: 1.5rem; }
  .btn--lg      { padding: .8rem 1.4rem; font-size: .92rem; }
}
