/* ============================================
   DOTT. GIOVANNI PARBONETTI – NEUROCHIRURGO
   Stylesheet principale
   ============================================ */

/* ---------- FONT ----------
   I font sono caricati nel <head> delle pagine HTML con preconnect
   (più veloce dell'@import, che è render-blocking). */

/* ---------- CSS VARIABLES ---------- */
:root {
  --blue:        #2E6DB4;
  --green:       #5BA85A;
  --gray:        #6B7280;
  --dark:        #0A1F3C;
  --white:       #FFFFFF;
  --light-bg:    #F4F6F9;
  --blue-light:  #E8F0FA;
  --green-light: #EAF5EA;
  --border:      #DDE3ED;
  --shadow:      rgba(10, 31, 60, 0.10);
  --shadow-lg:   rgba(10, 31, 60, 0.18);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

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

/* ---------- UTILITY ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 56px 0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 12px;
}
.section-title span { color: var(--blue); }
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}
.section-header { text-align: center; }
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 4px;
  margin: 16px 0 32px;
}
.section-header .divider { margin-left: auto; margin-right: auto; }

.bg-light { background: var(--light-bg); }
.bg-dark  { background: var(--dark); color: var(--white); }
.bg-blue  { background: var(--blue); color: var(--white); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(46,109,180,0.30);
}
.btn-primary:hover {
  background: #1d5a9e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,109,180,0.40);
}
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(91,168,90,0.30);
}
.btn-green:hover {
  background: #469445;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,168,90,0.40);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: var(--white);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px var(--shadow); }

.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.navbar-logo { height: 48px; width: auto; }
.navbar-brand-text { font-family: 'Montserrat', sans-serif; }
.navbar-brand-name {
  font-weight: 700; font-size: 1rem;
  color: var(--dark); line-height: 1.1;
}
.navbar-brand-title {
  font-size: 0.72rem; color: var(--blue);
  font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.navbar-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  box-shadow: 0 8px 24px var(--shadow);
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 1rem;
  color: var(--dark); padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, #0e2d5c 50%, #163d72 100%);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(91,168,90,0.18);
  border: 1px solid rgba(91,168,90,0.40);
  color: #7dce7c;
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 8px;
}
.hero-title span { color: var(--green); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px; font-weight: 500;
}
.hero-hospital {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem; margin-bottom: 32px;
}
.hero-hospital svg { color: var(--green); flex-shrink: 0; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-logo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(8px);
  text-align: center;
}
.hero-logo-card img { height: 220px; width: auto; margin: 0 auto 24px; }
.hero-logo-caption {
  color: rgba(255,255,255,0.60);
  font-size: 0.85rem; font-style: italic;
}

/* ---------- ABOUT / STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  border-bottom: 4px solid transparent;
  transition: var(--transition);
}
.stat-card:nth-child(odd) { border-bottom-color: var(--blue); }
.stat-card:nth-child(even) { border-bottom-color: var(--green); }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow-lg); }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: var(--gray); font-weight: 600; }

/* About section */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-image {
  position: relative;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--blue-light), var(--green-light));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  border: 2px dashed var(--border);
  color: var(--gray);
  font-size: 0.9rem; text-align: center;
  padding: 32px;
}
.about-img-placeholder svg { color: var(--blue); opacity: 0.5; }
.about-img-placeholder p { font-style: italic; }

.about-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: 4px 14px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.about-content h2 { margin-bottom: 8px; }
.about-content p { color: var(--gray); margin-bottom: 16px; line-height: 1.8; }
.about-highlights {
  display: flex; flex-direction: column; gap: 12px;
  margin: 24px 0;
}
.highlight-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.highlight-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.highlight-icon.blue { background: var(--blue-light); color: var(--blue); }
.highlight-icon.green { background: var(--green-light); color: var(--green); }
.highlight-text strong { display: block; font-size: 0.92rem; color: var(--dark); }
.highlight-text span { font-size: 0.83rem; color: var(--gray); }

/* ---------- TECNOLOGIE ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.tech-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white);
  padding: 20px; border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
}
.tech-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow-lg); }
.tech-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.tech-dot.blue  { background: var(--blue); }
.tech-dot.green { background: var(--green); }
.tech-item span { font-size: 0.88rem; font-weight: 600; color: var(--dark); line-height: 1.4; }

/* ---------- TESTIMONIANZE ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateY(-4px);
}
.quote-icon {
  font-size: 4rem; line-height: 1;
  color: var(--green);
  opacity: 0.5;
  font-family: Georgia, serif;
  position: absolute; top: 16px; left: 24px;
}
.testimonial-text {
  color: rgba(255,255,255,0.88);
  font-style: italic; font-size: 0.96rem;
  line-height: 1.8; margin-top: 20px;
  position: relative; z-index: 1;
}
.testimonial-author {
  margin-top: 20px;
  color: rgba(255,255,255,0.50);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.stars { color: #FFD700; font-size: 1rem; margin-bottom: 4px; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), var(--dark));
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.70); margin-bottom: 32px; }
.cta-band .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- SPECIALIZZAZIONI CARDS ---------- */
.patologie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.patologia-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: flex-start; gap: 16px;
}
.patologia-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 28px var(--shadow-lg);
  transform: translateY(-3px);
}
.patologia-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.patologia-icon.blue-bg  { background: var(--blue-light); }
.patologia-icon.green-bg { background: var(--green-light); }
.patologia-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.patologia-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.5; }

/* ---------- VIDEO SECTION ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  background: var(--dark);
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow-lg); }
.video-embed-wrap {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.video-card-body {
  padding: 16px 20px;
  background: var(--white);
}
.video-card-body h3 {
  font-size: 0.9rem; margin-bottom: 4px;
  color: var(--dark);
}
.video-card-body p {
  font-size: 0.8rem; color: var(--gray);
}
.video-external {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-external:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow-lg); }
.video-external-thumb {
  background: linear-gradient(135deg, var(--dark), #1a3e72);
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 24px;
}
.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--white);
  transition: var(--transition);
}
.video-external:hover .play-btn {
  background: var(--green);
  border-color: var(--green);
}
.video-external-thumb span {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem; text-align: center;
  font-style: italic;
}

/* ---------- ARTICOLI ---------- */
.articoli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.articolo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.articolo-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 28px var(--shadow);
  transform: translateY(-3px);
}
.articolo-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 12px;
}
.articolo-fonte {
  font-size: 0.75rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.articolo-data {
  font-size: 0.78rem; color: var(--gray);
}
.articolo-card h3 { font-size: 0.98rem; margin-bottom: 10px; line-height: 1.4; }
.articolo-card p { font-size: 0.85rem; color: var(--gray); flex: 1; margin-bottom: 20px; }
.articolo-link {
  color: var(--blue); font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}
.articolo-link:hover { color: var(--green); gap: 10px; }

/* ---------- CONTATTI ---------- */
.strutture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.struttura-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 20px var(--shadow);
  border-top: 4px solid transparent;
  transition: var(--transition);
}
.struttura-card.pubblica { border-top-color: var(--blue); }
.struttura-card.privata  { border-top-color: var(--green); }
.struttura-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px var(--shadow-lg); }
.struttura-tipo {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 50px;
  display: inline-block; margin-bottom: 12px;
}
.struttura-tipo.pubblica { background: var(--blue-light); color: var(--blue); }
.struttura-tipo.privata  { background: var(--green-light); color: var(--green); }
.struttura-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.struttura-card p  { font-size: 0.87rem; color: var(--gray); margin-bottom: 4px; }
.struttura-tel {
  display: flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 600; font-size: 0.9rem;
  margin-top: 16px;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---------- FORM ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 32px var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem; color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,109,180,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkbox-group {
  display: flex; align-items: flex-start; gap: 10px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 3px;
  flex-shrink: 0; cursor: pointer;
  accent-color: var(--blue);
}
.checkbox-group label {
  font-size: 0.82rem; color: var(--gray); margin-bottom: 0;
  cursor: pointer;
}
.checkbox-group a { color: var(--blue); }

.form-submit { margin-top: 8px; width: 100%; justify-content: center; }

.contact-info h3 { font-size: 1.3rem; margin-bottom: 20px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-icon.blue  { background: var(--blue-light); color: var(--blue); }
.contact-info-icon.green { background: var(--green-light); color: var(--green); }
.contact-info-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-item span  { font-size: 0.85rem; color: var(--gray); }

.cta-contact-btns {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px;
}
.cta-contact-btns .btn { justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand { }
.footer-brand img { height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 280px; }
.footer-brand .disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border-left: 3px solid var(--green);
}

.footer-links h4 {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--green); padding-left: 4px; }

.footer-bottom {
  padding-top: 24px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem; color: rgba(255,255,255,0.40);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-bottom a:hover { color: var(--green); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 990;
  background: #25D366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.60);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0e2d5c 100%);
  padding: 120px 0 64px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 20px;
  font-size: 0.82rem; color: rgba(255,255,255,0.50);
}
.breadcrumb a { color: var(--green); }

/* ---------- FADE IN ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.fade-left  { transform: translateX(-32px); }
.fade-in.fade-right { transform: translateX(32px); }
.fade-in.fade-left.visible,
.fade-in.fade-right.visible { transform: translateX(0); }

/* ---------- PAGE TRANSITION ---------- */
.page-content { animation: fadeInPage 0.4s ease; }
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links, .navbar-cta { display: none; }
  .hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 48px 0; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap { order: -1; }
  .hero-logo-card img { height: 140px; }
  .hero-logo-card { padding: 28px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-placeholder { aspect-ratio: 3/2; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section-pad { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .patologie-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .articoli-grid { grid-template-columns: 1fr; }
  .strutture-grid { grid-template-columns: 1fr; }
  .cta-band .btn-group .btn { width: 100%; justify-content: center; }
}

/* ===========================================
   ANIMAZIONI — GSAP
   =========================================== */

/* ---------- BARRA PROGRESSO SCROLL ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1100;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* ---------- NAVBAR TRANSITION (per GSAP) ---------- */
#navbar { will-change: transform; }

/* ---------- HERO ENTRANCE ANIMATIONS ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.hero-badge    { animation: heroFadeUp   0.6s ease both; animation-delay: 0.1s; }
.hero-title    { animation: heroFadeUp   0.7s ease both; animation-delay: 0.25s; }
.hero-subtitle { animation: heroFadeUp   0.7s ease both; animation-delay: 0.38s; }
.hero-hospital { animation: heroFadeUp   0.7s ease both; animation-delay: 0.50s; }
.hero-actions  { animation: heroFadeUp   0.7s ease both; animation-delay: 0.62s; }
.hero-photo-wrap {
  animation: heroSlideRight 0.8s ease both, heroFloat 4s ease-in-out 1.2s infinite;
  animation-delay: 0.3s, 1.2s;
}

/* ---------- FADE-IN REVEAL (IntersectionObserver) ---------- */

/* ---------- HERO PHOTO ---------- */
.hero-photo-wrap {
  position: relative;
  display: inline-block;
}
.hero-doctor-photo {
  width: 100%; max-width: 420px;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  border: 3px solid rgba(255,255,255,0.12);
}
.hero-photo-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  width: 84px; height: 84px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  padding: 11px;
}
.hero-photo-badge img { width: 100%; height: auto; }

/* ---------- ABOUT REAL PHOTO ---------- */
.about-real-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  padding-bottom: 24px;
}
.about-real-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px var(--shadow-lg);
  display: block;
}
.about-photo-tag {
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 8px 28px var(--shadow-lg);
  border-left: 4px solid var(--green);
  display: flex; flex-direction: column; gap: 3px;
}
.about-photo-tag span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.88rem; color: var(--dark);
}
.about-photo-tag small { font-size: 0.78rem; color: var(--gray); }

/* ---------- MORPH PHOTO ---------- */
.morph-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

/* ---------- LOGO MORPH SCROLL SCENE ---------- */
.morph-scene {
  height: 230vh;
  position: relative;
}
.morph-inner {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(46,109,180,0.28) 0%, rgba(10,31,60,0) 55%),
    radial-gradient(90% 80% at 50% 100%, rgba(91,168,90,0.22) 0%, rgba(10,31,60,0) 55%),
    var(--dark);
}
.morph-circle {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  opacity: 0;
  transform: scale(0);
  will-change: transform, opacity;
}
.morph-logo-big {
  position: absolute;
  width: 175px; height: auto;
  z-index: 3;
  will-change: transform, opacity;
  filter: brightness(0) invert(1) opacity(0.85);
}
.morph-content {
  position: absolute; z-index: 4;
  text-align: center;
  pointer-events: none;
  width: 100%; max-width: 720px;
  padding: 0 28px;
}
.morph-line1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; margin-bottom: 14px;
  opacity: 0;
}
.morph-line1, .morph-line2,
.morph-photo-frame, .morph-mini-stats .ms { will-change: transform, opacity; }
.morph-line2 {
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 32px; opacity: 0;
}
.morph-photo-frame {
  width: 248px; height: 312px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 60px rgba(0,0,0,0.40);
  margin: 0 auto 26px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,0.38);
  font-size: 0.82rem; text-align: center; line-height: 1.4;
  opacity: 0;
}
.morph-photo-frame svg { opacity: 0.4; }
.morph-mini-stats {
  display: flex; gap: 36px; justify-content: center; flex-wrap: wrap;
}
.morph-mini-stats .ms {
  text-align: center; opacity: 0;
}
.morph-mini-stats .ms strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--green); line-height: 1;
  margin-bottom: 4px;
}
.morph-mini-stats .ms span {
  font-size: 0.78rem; color: rgba(255,255,255,0.50);
  text-transform: uppercase; letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-doctor-photo { height: 320px; }
  .hero-photo-badge { width: 64px; height: 64px; bottom: -12px; right: -12px; padding: 8px; }
  .morph-logo-big { width: 120px; }
  .morph-photo-frame { width: 188px; height: 236px; margin-bottom: 22px; }
  .morph-mini-stats { gap: 20px; }
  .morph-mini-stats .ms strong { font-size: 1.4rem; }
}

/* ========================================================
   PAGINE LEGALI (Privacy / Cookie)
   ======================================================== */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-family:'Montserrat',sans-serif; font-size:1.3rem; color:var(--dark); margin:36px 0 12px; }
.legal-content h3 { font-family:'Montserrat',sans-serif; font-size:1.05rem; color:var(--blue); margin:22px 0 8px; }
.legal-content p { color:var(--gray); line-height:1.75; margin-bottom:14px; }
.legal-content a { color:var(--blue); }
.legal-updated { font-size:0.82rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--green); font-weight:600; }
.legal-note { margin-top:36px; padding:18px 20px; background:var(--light-bg); border-left:4px solid var(--green); border-radius:var(--radius); font-size:0.9rem; color:var(--gray); }
.legal-table { width:100%; border-collapse:collapse; margin:14px 0 24px; font-size:0.86rem; }
.legal-table th, .legal-table td { text-align:left; padding:10px 12px; border:1px solid #e5e7eb; vertical-align:top; color:var(--gray); }
.legal-table th { background:var(--light-bg); color:var(--dark); font-family:'Montserrat',sans-serif; font-weight:600; }

/* ========================================================
   CONSENSO COOKIE — anteprima embed bloccata
   ======================================================== */
.map-wrap { position: relative; }
.consent-ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:var(--light-bg); padding:20px; text-align:center; z-index:2; }
.consent-ph-inner { max-width:340px; color:var(--gray); }
.consent-ph-inner svg { color:var(--blue); margin-bottom:8px; }
.consent-ph-inner p { font-size:0.88rem; line-height:1.5; margin:6px 0 14px; }

/* ========================================================
   BANNER COOKIE
   ======================================================== */
.cookie-banner { position:fixed; left:16px; right:16px; bottom:16px; z-index:1200;
  background:var(--white); border:1px solid #e5e7eb; border-radius:var(--radius-lg);
  box-shadow:0 12px 48px rgba(10,31,60,0.22);
  transform:translateY(150%); opacity:0; transition:transform .35s ease, opacity .35s ease; }
.cookie-banner.open { transform:translateY(0); opacity:1; }
.cookie-banner-inner { display:flex; align-items:center; gap:24px; padding:18px 22px; max-width:1100px; margin:0 auto; flex-wrap:wrap; }
.cookie-banner-text { flex:1 1 360px; }
.cookie-banner-text strong { font-family:'Montserrat',sans-serif; color:var(--dark); display:block; margin-bottom:4px; }
.cookie-banner-text p { font-size:0.85rem; color:var(--gray); line-height:1.5; margin:0; }
.cookie-banner-text a { color:var(--blue); }
.cookie-banner-actions { display:flex; gap:10px; flex:0 0 auto; }
@media (max-width:600px){
  .cookie-banner-actions { width:100%; }
  .cookie-banner-actions .btn { flex:1; justify-content:center; }
}
