/* ============================================
   POLIAMBULATORIO DELTA — Design System
   Palette: blu del logo (navy profondo, blu medio, azzurro acceso)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&family=Poppins:wght@500;600;700&display=swap');

:root {
  --navy-900: #004C7A;
  --navy-800: #005D8D;
  --navy-700: #0A6B93;
  --navy-100: #E3F0F6;
  --sky: #0E7BA8;
  --sky-dark: #0A5F82;
  --sky-light: #E1F1F7;
  --mist: #E9F2F6;
  --mist-dark: #C3D8E2;
  --cream: #F8FAFC;
  --slate: #33424A;
  --slate-light: #64757F;
  --white: #FFFFFF;
  --border: #DCE6EC;
  --success: #4C7A5E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-logo: 'Poppins', 'Inter', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 76, 122, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 76, 122, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 76, 122, 0.14);

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.4rem; }

p { color: var(--slate); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--sky);
  display: inline-block;
}

/* Focus visibile per accessibilità */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-placeholder {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.logo-placeholder img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.15;
}

.logo-text span {
  display: block;
  font-family: var(--font-logo);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--navy-900); }

.main-nav a.active { color: var(--navy-900); font-weight: 600; }

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sky);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}

.btn-outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s;
}

.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: no-preference) {
  .wa-float {
    animation: wa-pulse 2.5s ease-in-out infinite;
  }
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 72px 24px 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-100) 0%, var(--cream) 100%);
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: italic;
  color: var(--sky);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}

.hero-trust-item svg { width: 20px; height: 20px; color: var(--sky); flex-shrink: 0; }

/* Signature element: rete di specialistiche interconnesse */
.network-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
}

.network-visual svg { width: 100%; height: 100%; }

.network-node-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  fill: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.network-line {
  stroke: var(--sky);
  stroke-width: 1;
  opacity: 0.35;
}

.network-node-circle {
  fill: var(--white);
  stroke: var(--navy-700);
  stroke-width: 1.5;
}

.network-node-center {
  fill: var(--sky);
}

/* ============ SECTIONS GENERIC ============ */
.section { padding: 88px 24px; }
.section-narrow { max-width: 780px; margin: 0 auto; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-sage { background: var(--mist); }
.bg-petrol { background: var(--navy-900); color: var(--white); }
.bg-petrol h2, .bg-petrol h3 { color: var(--white); }
.bg-petrol p { color: rgba(255,255,255,0.78); }

/* ============ BRANCHE / SPECIALTIES GRID ============ */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.branch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.branch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.branch-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.branch-icon svg { width: 24px; height: 24px; color: var(--navy-800); }

.branch-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.branch-card p { font-size: 0.9rem; color: var(--slate-light); margin-bottom: 14px; }

.branch-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.branch-link svg { width: 14px; height: 14px; }

/* ============ PUNTI DI FORZA ============ */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.strength-item { text-align: left; }

.strength-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 123, 168, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.strength-icon svg { width: 26px; height: 26px; color: var(--sky); }

.strength-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.strength-item p { font-size: 0.9rem; }
.bg-petrol .strength-item p { color: rgba(255,255,255,0.75); }

/* ============ COME PRENOTARSI (steps) ============ */
.steps-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--mist-dark);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 14px;
}

.step-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step-card p { font-size: 0.92rem; }

/* ============ BACHECA PROMOZIONI ============ */
.board {
  background: var(--mist);
  border-radius: var(--radius-lg);
  padding: 12px;
}

.board-inner {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,76,122,0.05) 40px),
    var(--white);
  border-radius: calc(var(--radius-lg) - 6px);
  padding: 40px;
  border: 1px solid var(--border);
}

.promo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-pin {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.promo-pin::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: var(--shadow-sm);
}

.promo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sky);
  background: var(--sky-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.promo-pin h3 { font-size: 1.02rem; margin-bottom: 8px; }
.promo-pin p { font-size: 0.88rem; margin-bottom: 14px; }
.promo-pin .promo-date { font-size: 0.78rem; color: var(--slate-light); font-weight: 500; }

.board-empty-note {
  text-align: center;
  padding: 40px 20px;
  color: var(--slate-light);
  font-size: 0.92rem;
}

/* ============ MAPPA / POSIZIONE ============ */
.location-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

.location-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }

.location-info-item { display: flex; gap: 14px; }

.location-info-item .icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--mist); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.location-info-item .icon svg { width: 20px; height: 20px; color: var(--navy-800); }
.location-info-item strong { display: block; color: var(--navy-900); font-size: 0.95rem; margin-bottom: 3px; }
.location-info-item span { font-size: 0.9rem; color: var(--slate-light); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.82);
  padding: 64px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-top: 14px; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.72); transition: color 0.2s; }
.footer-col a:hover { color: var(--sky); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ PAGE HEADER (inner pages) ============ */
.page-hero {
  background: var(--navy-900);
  padding: 64px 24px 56px;
  color: var(--white);
}
.page-hero .eyebrow { color: var(--sky); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 620px; font-size: 1.05rem; }

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--sky); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .network-visual { max-width: 340px; }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-wrap { grid-template-columns: 1fr; }
  .promo-list { grid-template-columns: repeat(2, 1fr); }
  .location-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: flex; }
  .header-inner .btn-primary.header-cta-desktop { display: none; }
  .branches-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }
  .promo-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .hero { padding: 48px 20px 64px; }
  .board-inner { padding: 24px 18px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 300;
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-close { background: none; border: none; color: white; width: 40px; height: 40px; }
.mobile-nav-close svg { width: 28px; height: 28px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  color: white; font-family: var(--font-display); font-size: 1.5rem; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav .btn { margin-top: 28px; }
