/* *** STILI PERSONALIZZATI *** */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --flag-green: #0b9b50;
    --flag-white: #ffffff;
    --flag-red: #d2212d;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.65;
}

main {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Header & menu */
header {
    z-index: 10000;
}
header button {
  font-size: 32px;
  line-height: 1;
}
#menu a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
#menu li {
  padding: 12px 14px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.social-icon:hover,
.social-icon:focus-visible {
  transform: scale(1.15);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

@media (max-width: 768px) {
  .social-links {
    gap: 6px;
  }
  .social-icon {
    width: 26px;
    height: 26px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  }
}

@media (max-width: 480px) {
  .social-links {
    gap: 4px;
  }
  .social-icon {
    width: 22px;
    height: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }
}

.social-icon.facebook { background: #1877f2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.whatsapp { background: #25d366; }
.social-icon.tiktok { background: #111; border: 1px solid #222; }

.site-title {
  font-size: 16px;
  line-height: 1.2;
}

/* Regole responsive generali */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  header {
    gap: 8px;
    padding: 10px 12px;
  }
  .site-title {
    font-size: 14px;
  }
  header button {
    font-size: 34px;
  }
  #menu a {
    font-size: 17px;
  }
  main {
    width: calc(100% - 24px);
  }
  .info-box {
    padding: 16px;
    margin: 16px auto;
  }
  .box {
    max-width: 100%;
    height: clamp(190px, 70vw, 260px);
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
  main {
    width: min(1320px, 100% - 48px);
  }
  .info-box {
    max-width: 960px;
    padding: 24px;
  }
  .box {
    max-width: 840px;
    height: 380px;
  }
}

/* Sfondo overlay (se serve) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(249, 249, 249);
    z-index: -1;
}

/* BOX info e gradient */
.info-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    max-width: 600px;
    margin: 20px auto;
    border: 2px solid var(--flag-green);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* BOX con immagine di sfondo */
.box {
    position: relative;
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px auto; /* Spazio verticale tra i box */
    border: 2px solid var(--flag-green);
}
.box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

/* Testo sopra il box */
.text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 18px;
    color: var(--flag-green);
    border-radius: 8px;
    border: 2px solid var(--flag-green);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    z-index: 2;
}
.text:hover {
    transform: translate(-50%, -2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  height: clamp(220px, 56vw, 420px);
  margin: 30px auto;
  border-radius: 12px;
}
.slider.box {
  width: 100%;
  height: clamp(220px, 56vw, 420px);
  margin: 30px auto;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  font-family: "Arial Black", Arial, sans-serif;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  background: none;
  padding: 0;
  border-radius: 0;
  z-index: 2;
  box-shadow: none;
}
.hero-text h1 {
  font-size: 52px;
  letter-spacing: 0.8px;
  margin-bottom: 15px;
  -webkit-text-stroke: 1px #000000;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.hero-text p {
  font-size: 26px;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
  -webkit-text-stroke: 0.6px #000000;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-text .btn {
  background: #ff9800;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .slider,
  .slider.box {
    height: clamp(200px, 60vw, 320px);
    margin: 20px auto;
  }
  .hero-text {
    padding: 0;
    width: calc(100% - 32px);
  }
  .hero-text h1 {
    font-size: 38px;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
  }
  .hero-text p {
    font-size: 22px;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
  }
  .hero-text .btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .slider,
  .slider.box {
    height: clamp(180px, 65vw, 260px);
  }
  .hero-text {
    width: calc(100% - 24px);
    padding: 0;
    border-radius: 0;
  }
  .hero-text h1 {
    font-size: 32px;
    letter-spacing: 0.5px;
  }
  .hero-text p {
    font-size: 18px;
    letter-spacing: 0.4px;
  }
}

/* Contenitore recensioni */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
}

.button-preventivo {
    background-color: var(--flag-green);
    color: #000; /* testo nero per contrasto */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}
.button-preventivo:hover {
    background-color: #0a7c44; /* colore leggermente piu scuro al passaggio del mouse */
}

.review-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--flag-green);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    max-width: 250px;
    text-align: center;
}
.stars {
    color: #ffd166;
    font-size: 20px;
    margin-bottom: 10px;
}
.review-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.review-text {
    font-size: 14px;
    color: #0b0d0c;
}

/* Elementi visibili solo su mobile (nascosti sul desktop) */
.mobile-cta-bar {
  display: none;
}

.menu-backdrop {
  display: none;
}

.mobile-social-bar {
  display: none;
}

.card-green {
    background: #ffffff;
    border: 2px solid var(--flag-green);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ===== FADE-IN ON SCROLL ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}
.fade-in-section.delay-1 { transition-delay: 0.1s; }
.fade-in-section.delay-2 { transition-delay: 0.2s; }
.fade-in-section.delay-3 { transition-delay: 0.3s; }

/* ===== VIDEO AUTOPLAY SECTION ===== */
.video-section {
  width: 100%;
  max-width: 780px;
  margin: 24px auto 0;
  text-align: center;
}
.video-section p {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.video-section video {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(11,155,80,0.15), 0 2px 8px rgba(0,0,0,0.1);
  display: block;
}

/* ===== MODERN REVIEW CARDS ===== */
.stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.review-box {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.review-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.14);
}

/* ===== MODERN CTA BUTTONS ===== */
a[href="preventivo.php"] button,
a[href^="tel"] {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a[href="preventivo.php"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,155,80,0.35);
}
