/* ===== Asilo Nido La Coccinella — stylesheet ===== */

:root {
  --rosso: #e2483d;
  --rosso-scuro: #c23327;
  --crema: #fff8ee;
  --verde: #5a8a5a;
  --verde-scuro: #3f6b40;
  --nero: #2b2521;
  --grigio: #6f6a65;
  --bordo: #ecdfc9;
  --ombra: 0 10px 30px rgba(43, 37, 33, 0.10);
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Quicksand", "Segoe UI", Verdana, Tahoma, sans-serif;
  color: var(--nero);
  background: var(--crema);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--nero);
  color: #f6ece0;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { text-decoration: none; font-weight: 600; color: #ffd9b0; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--crema);
  border-bottom: 1px solid var(--bordo);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--nero);
}
.brand svg, .brand img.brand-logo { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-text { line-height: 1.15; }
.brand-text .nome { font-size: 1.25rem; font-weight: 700; color: var(--rosso-scuro); display: block; }
.brand-text .sotto { font-size: 0.8rem; color: var(--grigio); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--nero);
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover { background: #f3e3cd; }
nav.main-nav a.active { background: var(--rosso); color: #fff; }

.btn-call-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rosso);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--ombra);
}
.btn-call-header:hover { background: var(--rosso-scuro); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f6e6cf 0%, #fff8ee 55%, #eaf2e2 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--rosso-scuro);
}
.hero p.lead {
  font-size: 1.08rem;
  color: #4a433c;
  margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rosso); color: #fff; box-shadow: var(--ombra); }
.btn-primary:hover { background: var(--rosso-scuro); }
.btn-outline { background: transparent; border: 2px solid var(--verde); color: var(--verde-scuro); }
.btn-outline:hover { background: var(--verde); color: #fff; }

.hero-photo {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ombra);
  border: 6px solid #fff;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- Page title band (inner pages) ---------- */
.page-title {
  background: linear-gradient(120deg, var(--rosso) 0%, var(--rosso-scuro) 100%);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.page-title h1 { margin: 0 0 8px; font-size: 2rem; }
.page-title .breadcrumb { font-size: 0.9rem; opacity: 0.9; }
.page-title .breadcrumb a { color: #ffe3d6; text-decoration: none; }
.page-title .breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: #f6efe0; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 1.8rem; color: var(--rosso-scuro); margin-bottom: 12px; }
.section-head p { color: var(--grigio); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--ombra); }
.two-col.reverse .col-img { order: 2; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--ombra);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #fdeadf;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--rosso);
}
.card h3 { margin: 0 0 10px; color: var(--verde-scuro); font-size: 1.15rem; }
.card p { margin: 0; color: #4a433c; font-size: 0.95rem; }

/* ---------- Info strip ---------- */
.info-strip {
  background: var(--verde-scuro);
  color: #fff;
}
.info-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 28px 24px;
}
.info-strip .item { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.info-strip .item strong { display: block; font-size: 0.95rem; }
.info-strip .item span { font-size: 0.85rem; opacity: 0.85; }
.info-strip svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--crema);
  border-top: 1px dashed var(--bordo);
  border-bottom: 1px dashed var(--bordo);
  text-align: center;
  padding: 46px 0;
}
.cta-band h2 { color: var(--rosso-scuro); margin-bottom: 18px; font-size: 1.5rem; }

/* ---------- Documents list ---------- */
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.doc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--nero);
  transition: border-color .15s ease, transform .15s ease;
}
.doc-list a:hover { border-color: var(--rosso); transform: translateY(-2px); }
.doc-list svg { width: 20px; height: 20px; color: var(--rosso); flex-shrink: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-grid.contact-grid-single {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--ombra);
}
.contact-card h3 { color: var(--rosso-scuro); margin-top: 0; }
.contact-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-row svg { width: 22px; height: 22px; color: var(--verde-scuro); flex-shrink: 0; margin-top: 3px; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--bordo); font-size: 0.95rem; }
.hours-table td:last-child { text-align: right; font-weight: 700; }

form.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  margin-top: 16px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--bordo);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fffefb;
}
form.contact-form textarea { resize: vertical; min-height: 110px; }
form.contact-form .checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 0.85rem; color: var(--grigio); }
form.contact-form .checkbox-row input { width: auto; margin-top: 3px; }
form.contact-form button {
  margin-top: 22px;
  border: none;
  cursor: pointer;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombra);
  border: 1px solid var(--bordo);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--nero);
  color: #d8cfc4;
  padding-top: 48px;
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site-footer p, footer.site-footer a { font-size: 0.9rem; color: #cfc5b8; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .brand { color: #fff; margin-bottom: 12px; }
footer.site-footer .brand-text .sotto { color: #b7ac9d; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #40382f;
  padding: 16px 0;
  font-size: 0.8rem;
  text-align: center;
  color: #a89d8e;
}
.footer-bottom a { color: #cbb896; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-img { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  footer.site-footer .container { grid-template-columns: 1fr; }
}
