html {
  scroll-behavior: smooth;
}

/* ===== SEZIONI – TIPOGRAFIA ===== */
.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== HERO SUBTITLE ===== */
.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px !important;
}

/* ===== GRID VARIANTI ===== */
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===== PRINCIPI ===== */
.card-principle {
  border-bottom: 3px solid var(--primary);
}

.principle-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.35;
  margin-bottom: 8px;
  line-height: 1;
}

/* ===== SYMPTOM LIST ===== */
.symptom-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.symptom-list li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 0.9rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}

.symptom-list li:last-child {
  border-bottom: none;
}

.symptom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== PEDIATRICA ===== */
.pediatrica-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.symptom-list--two-col {
  columns: 2;
  column-gap: 30px;
}

.symptom-list--two-col li {
  break-inside: avoid;
}

.pediatrica-cta-box {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  position: sticky;
  top: 24px;
}

.pediatrica-cta-box p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== FLORITERAPIA ===== */
.floriterapia-card {
  background: linear-gradient(135deg, var(--light) 0%, #e8f4f1 100%);
  border-radius: 24px;
  padding: 50px;
  border-left: 5px solid var(--accent);
}

.floriterapia-text h2 {
  margin-bottom: 16px;
}

.floriterapia-text p {
  max-width: 640px;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ===== CHI SONO – EXTRA ===== */
.about-role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px !important;
}

.about p {
  margin-bottom: 12px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  background: white;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 500;
}

:root {
  --primary: #7DAA9E;
  --accent: #C6A65C;
  --dark: #1E2A28;
  --light: #F7F9F8;
  --text: #2E2E2E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 3rem;
	line-height: 1.3;
  margin-bottom: 20px;
}

.hero h2 {
	font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero img {
  width: 420px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
  display: inline-block;
	border: none;
	cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #689688;
}

.btn-secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--light);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.about {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about img {
  width: 350px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.cta-final {
  text-align: center;
  padding: 80px 0;
  background: var(--primary);
  color: white;
}

.cta-final h2 {
  color: white;
  margin-bottom: 20px;
}

.footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
  background: #f1f1f1;
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  line-height: 0;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-cta {
  text-align: center;
  margin-top: 24px;
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ===== FORM CONTATTI ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--dark);
}

.required {
  color: #c0392b;
}

.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid #dde4e2;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(125,170,158,0.15);
  background: white;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 5px;
  min-height: 1rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-privacy {
  font-size: 0.78rem;
  color: #999;
  flex: 1;
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-feedback {
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.success {
  background: #eaf7f3;
  color: #1e6f52;
  border: 1px solid #a3d9c5;
  display: block;
}

.form-feedback.error {
  background: #fdf0ee;
  color: #922b1e;
  border: 1px solid #f0a89e;
  display: block;
}

/* CTA strip */
.cta-strip {
  background: var(--primary);
  padding: 30px 0;
}

.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cta-strip p {
  color: white;
  font-size: 1.05rem;
  margin: 0;
}

.btn-white {
  background: white;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
  display: inline-block;
}

.btn-white:hover {
  background: var(--light);
}

@media(max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .map-wrapper iframe {
    height: 300px;
  }

  .pediatrica-layout {
    grid-template-columns: 1fr;
  }

  .symptom-list--two-col {
    columns: 1;
  }

  .pediatrica-cta-box {
    position: static;
  }

  .floriterapia-card {
    padding: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip .container {
    flex-direction: column;
    text-align: center;
  }

  .hero img,
  .about img {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: block;
  }
}

@media(max-width: 480px) {
  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero img,
  .about img {
    max-width: 100%;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 50px 0;
  }

  .card {
    padding: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 30px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.92rem;
  }

  /* Bottoni hero uno sotto l'altro */
  .hero-text .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }

  .hero-text .btn + .btn {
    margin-top: 12px;
  }

  .map-wrapper iframe {
    height: 240px;
  }

  .whatsapp-fab {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem; /* evita zoom automatico iOS */
  }

  .footer {
    padding: 30px 0;
    font-size: 0.82rem;
  }

  .about-badges {
    justify-content: center;
  }

  .floriterapia-card {
    padding: 24px;
  }

  .symptom-list--two-col {
    columns: 1;
  }
}
