/* ======================= */
/* BODY & CONTAINER        */
/* ======================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f8f9fb;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ======================= */
/* HEADER & NAVBAR         */
/* ======================= */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 80%;
  display: block;
}

/* ======================= */
/* MENU DESKTOP            */
/* ======================= */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li {
  position: relative;
  font-weight: 600;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #0077ff;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 10px 0;
  list-style: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 500;
}

nav ul li ul li {
  font-weight: 400;
  padding: 8px 20px;
}

nav ul li ul li a {
  color: #333;
}

nav ul li ul li a:hover {
  color: #0077ff;
}

nav ul li:hover ul {
  display: block;
}

/* ======================= */
/* HERO SECTION            */
/* ======================= */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

/* ======================= */
/* SECTIONS CARDS          */
/* ======================= */
.sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
  position: relative;
  text-decoration: none;
  color: #333;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  margin-top: 10px;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,119,255,0.85);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
  font-size: 20px;
  font-weight: 600;
}

.card:hover .card-overlay {
  opacity: 1;
}

/* ======================= */
/* PAGE CONTENT & FOOTER   */
/* ======================= */
.page-content {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.page-content p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
}

.page-content h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #1f2937;
}

.site-footer {
  background: #1a1a1a;
  color: white;
  padding: 50px 20px;
}

.site-footer .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.site-footer h4 {
  margin-bottom: 15px;
}

.site-footer p {
  opacity: 0.8;
  line-height: 1.3;
  margin: 5px 0;
}

.social-icons a {
  display: inline-block;
  margin-right: 15px;
}

.social-icons img {
  width: 28px;
  height: 28px;
}

/* ======================= */
/* WHATSAPP FLOAT          */
/* ======================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 999;
}

.whatsapp-float img {
  width: 50px;
  height: 50px;
}

/* ======================= */
/* MAP CONTAINER           */
/* ======================= */
.map-container {
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 10px;
}

/* ======================= */
/* FADE IN EFFECT          */
/* ======================= */
/* Questo gestisce gli elementi che compaiono allo SCROLL */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* NUOVA REGOLA: Questo fa apparire la prima parte SUBITO all'apertura */
.fade-in-subito {
  opacity: 0;
  transform: translateY(40px);
  animation: comparsaImmediata 0.9s ease forwards;
  will-change: opacity, transform;
}

@keyframes comparsaImmediata {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================= */
/* BURGER & MOBILE MENU    */
/* ======================= */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #333;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  padding: 30px;
  transition: 0.4s;
  z-index: 2000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 15px;
  font-weight: 600;
}

.mobile-menu li ul {
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
}

.mobile-menu li ul li {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 10px;
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  font-weight: inherit;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ======================= */
/* DOVE SIAMO              */
/* ======================= */
.info-box {
  margin-top: 35px;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.info-box h3 {
  margin-bottom: 15px;
  color: #1f2937;
}

.tabella-orari {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tabella-orari th {
  background: #0077ff;
  color: white;
  padding: 14px;
  text-align: center;
}

.tabella-orari td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.tabella-orari tr:hover {
  background: #f3f4f6;
}

/* ======================= */
/* RESPONSIVE MEDIA QUERIES*/
/* ======================= */
@media(max-width:900px) {
  nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero h1 {
    font-size: 30px;
  }
}

@media(max-width:768px) {
  .tabella-orari th,
  .tabella-orari td {
    font-size: 14px;
    padding: 10px;
  }
  .contatti-orizzontali {
    flex-direction: column !important;
    gap: 20px;
  }
}

/* ======================= */
/* NUOVA AREA CONTATTI     */
/* ======================= */
.contatti-orizzontali {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contatto-singolo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contatto-singolo p {
  margin: 0 !important;
  font-size: 16px;
}

.contatto-singolo a {
  text-decoration: none;
  color: #0077ff;
  font-weight: 600;
}

.contatto-emoji {
  font-size: 22px;
}

.social-sotto {
  margin-top: 40px;
  padding-top: 20px;
}

.social-sotto h4 {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 15px;
}

.social-icone-piccole {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icone-piccole a {
  display: inline-block;
  transition: transform 0.2s;
}

.social-icone-piccole a:hover {
  transform: scale(1.1);
}

.social-icone-piccole img {
  width: 32px;  
  height: 32px;
  display: block;
}