/* --- Reset e base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f8f7f4;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Logo esteso + pulsanti in cima --- */
.top-banner {
  background: linear-gradient(160deg, #3584e4 0%, #1a5fb4 50%, #0d3d7a 100%);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}
.top-banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.logo-banner {
  display: block;
  margin: 0 auto;
}
.logo-banner img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.logo-banner .logo-text {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
}
.top-banner-address {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
}
.nav-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s;
}
.nav-btn:hover {
  background: #f9e64a;
  color: #1a1a1a;
  border-color: #f9e64a;
}
.top-banner .menu-toggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 1.25rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .top-banner .menu-toggle { display: block; }
  .nav-buttons {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
  }
  .nav-buttons.open { display: flex; }
  .nav-btn { width: 100%; text-align: center; }
}

/* --- Carousel immagini scorrimento continuo --- */
.hero-carousel {
  overflow: hidden;
  background: #f0f2f5;
  padding: 0.5rem 0;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: carousel-scroll 50s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
.hero-carousel img {
  flex-shrink: 0;
  width: 340px;
  height: 260px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: #fff;
}
/* Loop senza vuoto: scroll di metà traccia (stesse 4 foto duplicate), poi reset invisibile */
@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .hero-carousel img { width: 280px; height: 200px; }
}

/* --- Hero (blocco testi sotto il carousel) --- */
.hero {
  position: relative;
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #3584e4 0%, #1a5fb4 40%, #0d3d7a 100%);
  z-index: -1;
}
.hero-tag {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn-primary { background: #f9e64a; color: #1a1a1a; }
.hero .btn-primary:hover { background: #f5dc2e; box-shadow: 0 4px 16px rgba(249,230,74,0.4); }

/* --- Mappa Google integrata --- */
.map-wrap {
  margin: 1.25rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  aspect-ratio: 16 / 10;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: #1a5fb4;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #0d3d7a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 95, 180, 0.4);
}
.btn-secondary {
  background: #fff;
  color: #1a5fb4;
  border: 2px solid #1a5fb4;
}
.btn-secondary:hover {
  background: #1a5fb4;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Sezioni --- */
.section {
  padding: 3rem 0;
}
.section-alt { background: #fff; }
.section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a1628;
  text-align: center;
}
.section-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: #555;
}

/* --- Cards servizi --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.card-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: #0a1628; }
.card p { margin: 0; color: #555; font-size: 0.95rem; }
.card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; color: #1a5fb4; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.gallery-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

/* --- Come funziona (steps) --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.step { text-align: center; padding: 1.25rem; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: #1a5fb4; color: #fff; font-weight: 700; border-radius: 50%; margin-bottom: 0.75rem; }
.step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: #0a1628; }
.step p { margin: 0; font-size: 0.9rem; color: #555; }
.highlight-box { text-align: center; padding: 1rem; background: #f0f7ff; border-radius: 8px; border-left: 4px solid #1a5fb4; margin: 1.5rem 0 0; }
.highlight-box a { color: #1a5fb4; font-weight: 600; text-decoration: none; }
.highlight-box a:hover { text-decoration: underline; }

/* --- Orari --- */
.orari-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; justify-content: center; max-width: 560px; margin: 0 auto; }
.orari-box {
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.orari-box h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #1a5fb4; }
.orari-box p { margin: 0.5rem 0; }
.note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* --- Prezzi --- */
/* --- Prezzi: vantaggi Card e tabella --- */
.card-benefits-box {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
  border-radius: 12px;
  border-left: 4px solid #1a5fb4;
}
.card-benefits-box h3 { margin: 0 0 0.5rem; font-size: 1.15rem; color: #0a1628; }
.card-benefits-box p { margin: 0 0 0.75rem; color: #444; font-size: 0.95rem; }
.card-benefits-box ul { margin: 0; padding-left: 1.25rem; color: #444; font-size: 0.9rem; line-height: 1.6; }
.card-benefits-box li { margin-bottom: 0.25rem; }

.prezzi-table-wrap {
  overflow-x: auto;
  margin: 1.5rem auto;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.prezzi-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}
.prezzi-table th,
.prezzi-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.prezzi-table th {
  background: #1a5fb4;
  color: #fff;
  font-weight: 600;
}
.prezzi-table th:last-child,
.prezzi-table td:last-child { text-align: right; }
.prezzi-table tbody tr:hover { background: #f8fafc; }
.prezzi-table td:nth-child(2) { color: #666; }
.prezzi-table td:nth-child(3) { color: #1a5fb4; font-weight: 600; }

#prezzi .note { margin-top: 1rem; }
#prezzi .note a { color: #1a5fb4; font-weight: 600; text-decoration: none; }
#prezzi .note a:hover { text-decoration: underline; }

/* --- Dove siamo --- */
.indirizzo, .citta { text-align: center; margin: 0.25rem 0; }
.indirizzo { font-weight: 600; }
#dove .btn { margin-top: 1rem; }
.feature-with-img { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: 1rem; }
.feature-img { width: 100%; max-width: 420px; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.08); justify-self: center; }
.feature-text p { margin: 0; color: #444; }
@media (max-width: 700px) {
  .feature-with-img { grid-template-columns: 1fr; }
  .feature-with-img .feature-img { order: -1; }
}

/* --- Contatti --- */
.contatti-list { text-align: center; }
.contatti-list p { margin: 0.5rem 0; }
.contatti-list a { color: #1a5fb4; font-weight: 600; text-decoration: none; }
.contatti-list a:hover { text-decoration: underline; }
.contatti-logo { text-align: center; margin-top: 2rem; }
.logo-footer {
  display: block;
  width: 22em;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* --- Footer --- */
.footer {
  padding: 1.5rem 0;
  background: #0d3d7a;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.9rem;
}
.footer p { margin: 0; }
.footer .visit-counter {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
}
