/* ==========================================================================
   SANTORI S.R.L. (santorisrl.it) — EDITORIAL & CLEAN EDITION
   Focus Principale: Termoidraulica da Banco + Video Hero in Background.
   Colori Ufficiali Logo: Blu Santori (#003463) e Giallo Santori (#FFED00).
   ========================================================================== */

:root {
  --santori-blue: #003463;
  --santori-blue-dark: #002140;
  --santori-blue-light: #0d4a80;
  --santori-yellow: #FFED00;
  --santori-yellow-hover: #f2e000;

  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-soft: #F0F3F6;

  --text-main: #003463;
  --text-body: #3D5166;
  --text-muted: #6E8094;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER PULITO CON LOGO UFFICIALE
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: all 400ms var(--ease-smooth);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 52, 99, 0.08);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
  transition: height 300ms var(--ease-smooth);
}

.site-header.is-scrolled .brand-logo img {
  height: 42px;
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
  padding-bottom: 4px;
  transition: color 300ms var(--ease-smooth);
}

.site-header.is-scrolled .nav-links a {
  color: var(--santori-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms var(--ease-smooth);
}

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

/* ==========================================================================
   PULSANTI SOBRI E PULITI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 300ms var(--ease-smooth);
}

.btn-yellow {
  background: var(--santori-yellow);
  color: var(--santori-blue);
}

.btn-yellow:hover {
  background: var(--santori-yellow-hover);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--santori-blue);
  color: #FFFFFF;
}

.btn-blue:hover {
  background: var(--santori-blue-light);
  transform: translateY(-2px);
}

.btn-white {
  background: #FFFFFF;
  color: var(--santori-blue);
}

.btn-white:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn-filo-diretto {
  padding: 0.45rem 1.35rem 0.45rem 0.75rem;
  gap: 0.55rem;
  overflow: hidden;
}

.btn-faces-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: -0.45rem;
  flex-shrink: 0;
}

.wa-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 52, 99, 0.55);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 250ms ease;
}

.site-header.is-scrolled .mobile-menu-toggle {
  border-color: rgba(0, 52, 99, 0.2);
  background: rgba(0, 52, 99, 0.06);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease, background 250ms ease;
}

.site-header.is-scrolled .mobile-menu-toggle span {
  background: var(--santori-blue);
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   FULL-SCREEN HERO CON VIDEO IN BACKGROUND
   ========================================================================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  overflow: hidden;
  background: var(--santori-blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 52, 99, 0.88) 0%,
    rgba(0, 52, 99, 0.64) 55%,
    rgba(0, 33, 64, 0.36) 100%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--santori-yellow);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.65rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: 1.35rem;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

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

.scroll-down-indicator {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #FFFFFF;
  animation: scroll-drop 1.8s infinite ease-in-out;
}

@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ==========================================================================
   SEZIONI EDITORIALI CON AMPIO RESPIRO
   ========================================================================== */
.section {
  padding: 6.5rem 2rem;
}

.section-white {
  background: var(--bg-white);
}

.section-soft {
  background: var(--bg-light);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-eyebrow {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--santori-blue);
  margin-bottom: 1.15rem;
}

.section-lead {
  font-size: 1.06rem;
  color: var(--text-body);
  max-width: 58ch;
}

/* ==========================================================================
   FOCUS PRINCIPALE: TERMOIDRAULICA DA BANCO (PROTAGONISTA)
   ========================================================================== */
.section-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.banco-protagonist {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 52, 99, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  box-shadow: 0 18px 42px rgba(0, 52, 99, 0.05);
}

.banco-protagonist-media {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
}

.banco-main-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.banco-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms var(--ease-smooth);
}

.banco-protagonist:hover .banco-main-photo img {
  transform: scale(1.03);
}

.banco-protagonist-body {
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banco-protagonist-title {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 800;
  color: var(--santori-blue);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.banco-protagonist-desc {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}

.banco-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(0, 52, 99, 0.1);
  border-bottom: 1px solid rgba(0, 52, 99, 0.1);
  margin-bottom: 1.75rem;
}

.banco-cat-item {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--santori-blue);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.35;
}

.banco-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--santori-blue);
  flex-shrink: 0;
}

.banco-protagonist-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   REPARTI SECONDARI (MENO IMPORTANZA VISIVA, COMPATTI A 4 COLONNE)
   ========================================================================== */
.secondary-depts-wrap {
  margin-top: 4rem;
}

.secondary-depts-header {
  margin-bottom: 1.5rem;
}

.secondary-depts-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--santori-blue);
}

.secondary-departments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dept-card-compact {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 52, 99, 0.08);
  transition: transform 350ms var(--ease-smooth), box-shadow 350ms var(--ease-smooth);
}

.dept-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 52, 99, 0.06);
}

.dept-card-compact .dept-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.dept-card-compact .dept-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-smooth);
}

.dept-card-compact:hover .dept-card-img img {
  transform: scale(1.04);
}

.dept-card-compact .dept-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.dept-card-compact .dept-card-meta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.dept-card-compact .dept-card-title {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--santori-blue);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.dept-card-compact .dept-card-text {
  font-size: 0.83rem;
  color: var(--text-body);
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

.dept-card-compact .dept-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--santori-blue);
}

/* ==========================================================================
   CHI SIAMO — GALLERIA FOTO REALI STRUTTURA + TESTO PULITO
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4.5rem;
  align-items: center;
}

.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-smooth), opacity 260ms ease;
}

.facility-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.facility-thumb {
  appearance: none;
  border: none;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-soft);
  opacity: 0.55;
  transition: opacity 250ms ease, transform 250ms ease;
}

.facility-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-thumb:hover,
.facility-thumb.active {
  opacity: 1;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 52, 99, 0.1);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--santori-blue);
  line-height: 1.1;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-body);
  display: block;
}

/* ==========================================================================
   MARCHI PARTNER UFFICIALI (22 LOGHI REALI)
   ========================================================================== */
.brands-marquee-mask {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 2.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.brands-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-logo-card {
  width: 150px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 250ms ease, transform 250ms ease;
}

.brand-logo-card:hover {
  opacity: 1;
  transform: scale(1.05);
}

.brand-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   BANNER FILO DIRETTO (CON FOTO SCONTORNATA SANTORI) + CONTATTI SEDE
   ========================================================================== */
.filo-diretto-banner {
  background: var(--santori-blue);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  margin-bottom: 4.5rem;
}

.filo-diretto-content {
  padding: 3.5rem 3.5rem 3.5rem 3.5rem;
  align-self: center;
}

.filo-diretto-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--santori-yellow);
  margin-bottom: 0.75rem;
}

.filo-diretto-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.filo-diretto-text {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 48ch;
  margin-bottom: 1.85rem;
}

.filo-diretto-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filo-diretto-photo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 1.5rem;
  padding-right: 2rem;
}

.filo-diretto-photo img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
  padding-top: 1rem;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.contact-item-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--santori-blue);
  text-decoration: none;
  line-height: 1.45;
  display: block;
}

/* ==========================================================================
   DRAWER LATERALE CATEGORIE REPARTO
   ========================================================================== */
.dept-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 33, 64, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-smooth);
}

.dept-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dept-drawer {
  width: 100%;
  max-width: 580px;
  height: 100%;
  background: var(--bg-white);
  padding: 2.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 420ms var(--ease-smooth);
}

.dept-modal-backdrop.is-open .dept-drawer {
  transform: translateX(0);
}

.drawer-close {
  float: right;
  appearance: none;
  border: 1px solid rgba(0, 52, 99, 0.15);
  background: transparent;
  color: var(--santori-blue);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.drawer-cat-list {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(0, 52, 99, 0.1);
}

.drawer-cat-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 52, 99, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.drawer-cat-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--santori-blue);
}

.drawer-cat-desc {
  font-size: 0.84rem;
  color: var(--text-body);
}

/* ==========================================================================
   ANIMAZIONI SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 750ms var(--ease-smooth), transform 750ms var(--ease-smooth);
}

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

/* Footer Pulito */
.site-footer {
  background: var(--santori-blue);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem;
  font-size: 0.86rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-brand img {
  height: 38px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 250ms ease, opacity 250ms ease;
}

.footer-links a:hover {
  color: var(--santori-yellow);
}

/* ==========================================================================
   PAGINA LEGALE — PRIVACY & COOKIE POLICY (STILE EDITORIALE SANTORI)
   ========================================================================== */
.legal-hero {
  background: linear-gradient(135deg, var(--santori-blue-dark) 0%, var(--santori-blue) 100%);
  color: #FFFFFF;
  padding: 9rem 2rem 4.25rem 2rem;
}

.legal-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.legal-hero-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--santori-yellow);
  margin-bottom: 0.85rem;
}

.legal-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.legal-hero-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 68ch;
}

.legal-page-section {
  padding: 4.5rem 2rem 6rem 2rem;
  background: var(--bg-light);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 52, 99, 0.1);
  padding: 3rem;
  box-shadow: 0 14px 36px rgba(0, 52, 99, 0.04);
}

.legal-owner-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--santori-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.legal-owner-box h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--santori-blue);
  margin-bottom: 0.6rem;
}

.legal-owner-box p {
  font-size: 0.94rem;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}

.legal-owner-box p:last-child {
  margin-bottom: 0;
}

.legal-block {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(0, 52, 99, 0.08);
}

.legal-block:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-block h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--santori-blue);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.legal-block h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--santori-blue);
  margin-top: 1.15rem;
  margin-bottom: 0.45rem;
}

.legal-block p {
  font-size: 0.96rem;
  color: var(--text-body);
  margin-bottom: 0.85rem;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block ul {
  margin: 0.65rem 0 0.85rem 1.35rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

.legal-block li {
  margin-bottom: 0.45rem;
}

.legal-block a {
  color: var(--santori-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 980px) {
  .site-header {
    padding: 0.85rem 0;
  }
  .site-header.is-scrolled,
  .site-header.menu-open {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.7rem 0;
  }
  .site-header.menu-open .mobile-menu-toggle {
    border-color: rgba(0, 52, 99, 0.2);
    background: rgba(0, 52, 99, 0.06);
  }
  .site-header.menu-open .mobile-menu-toggle span {
    background: var(--santori-blue);
  }
  .header-container {
    padding: 0 1.15rem;
    flex-wrap: nowrap;
  }
  .brand-logo img,
  .site-header.is-scrolled .brand-logo img {
    height: 40px;
  }
  .btn-filo-diretto {
    padding: 0.35rem 0.75rem 0.35rem 0.55rem;
    gap: 0.45rem;
  }
  .btn-faces-img {
    height: 34px;
    margin-bottom: -0.35rem;
  }
  .wa-icon {
    width: 22px;
    height: 22px;
  }
  .btn-filo-text {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 52, 99, 0.1);
    box-shadow: 0 14px 30px rgba(0, 52, 99, 0.08);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem 1.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 250ms ease, transform 250ms ease;
  }
  .site-header.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 52, 99, 0.07);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links a,
  .site-header.is-scrolled .nav-links a {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    color: var(--santori-blue);
    font-size: 1rem;
  }
  .about-split,
  .contact-split,
  .banco-protagonist,
  .filo-diretto-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .filo-diretto-content {
    padding: 2.5rem 2rem 0.5rem 2rem;
  }
  .filo-diretto-photo {
    padding: 0 1.5rem;
  }
  .secondary-departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banco-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4.5rem 1.25rem;
  }
  .secondary-departments-grid,
  .banco-cats-grid,
  .stats-row,
  .contact-details-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .banco-protagonist-body {
    padding: 1.75rem;
  }
  .filo-diretto-content {
    padding: 2rem 1.5rem 0.5rem 1.5rem;
  }
  .legal-hero {
    padding: 7.25rem 1.25rem 3rem 1.25rem;
  }
  .legal-page-section {
    padding: 2.75rem 1.25rem 4rem 1.25rem;
  }
  .legal-card {
    padding: 1.65rem 1.35rem;
  }
}
