body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  color: #333;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo img { height: 60px; }

.navbar ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #0C497C;
  font-weight: 500;
}

.btn-prenota {
  background: #0C497C;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn-prenota:hover { background: #08345C; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #0C497C;
  border-radius: 2px;
}

/* ===== HERO VIDEO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* video a schermo intero */
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    height: 60vh; /* 👈 regola qui la grandezza del video su mobile */
  }
}

.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* adatta il video */
  z-index: 1;
}

/* overlay con contenuto centrato */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* spinge il contenuto verso il basso */
  align-items: center;
  padding-bottom: 120px;       /* regola la distanza dal fondo */
  z-index: 2;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}
.hero-content {
  transform: translateY(-40px); /* Valore negativo = più in alto, positivo = più in basso */
}

.hero-content .btn-prenota {
  background-color: #0C497C;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-content .btn-prenota:hover {
  background-color: #08345C;
}

/* versione mobile */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
}

/* ===== PROMO CREO ===== */
.promo-creo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  margin-top: 60px; /* 👈 Aggiunge spazio sopra la sezione */
  background-color: #ffffff;
}

.promo-creo img {
  max-width: 500px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.promo-creo img:hover {
  transform: scale(1.03);
}

/* versione mobile */
@media (max-width: 768px) {
  .promo-creo {
    padding: 40px 0;
    margin-top: 40px; /* meno spazio su mobile */
  }

  .promo-creo img {
    max-width: 320px;
    width: 90%;
  }
}

/* ===== SEZIONE CATEGORIE STILE CREO ===== */
.categories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 80px 10%;
  background: #fff;
}

.grid-left, .grid-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.category-card.large {
  height: 600px;
}

.category-card.small {
  height: 290px;
}

/* Overlay testo */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 25px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}

.overlay .line {
  display: block;
  width: 60px;
  height: 2px;
  background: #fff;
  margin-bottom: 8px;
}

.overlay h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
}

/* Effetto hover */
.category-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* ===== VERSIONE MOBILE ===== */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .category-card.large,
  .category-card.small {
    height: 300px;
  }
}

/* ===== MOBILE VERSIONE (immagini più piccole) ===== */
@media (max-width: 768px) {
  .categories {
    gap: 40px;
    padding: 50px 0;
  }

  .card img {
    height: 280px;
  }

  .card h3 {
    font-size: 1.2rem;
  }
}
/* ===== FAER ===== */
.faer-section { text-align: center; padding: 60px 10%; }
.faer-gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.faer-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.faer-item:hover img { transform: scale(1.03); }

/* ===== FORM ===== */
.form-section {
  padding: 60px 10%;
  background: #f7f7f7;
  text-align: center;
}
.form-section h2 {
  color: #0C497C;
  font-size: 2rem;
  margin-bottom: 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.contact-form button {
  background: #0C497C;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover { background: #08345C; }

/* ===== FOOTER ===== */
.footer {
  background: #0C497C;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.footer a {
  color: #fff;
  text-decoration: underline;
}
.footer a:hover {
  text-decoration: none;
  opacity: 0.85;
}
/* ===== FIX FOOTER PER PAGINE CORTE (es. FAER) ===== */
.page-short {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-short main {
  flex: 1;
}

.page-short footer.footer {
  margin-top: auto;
}


/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0C497C;
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: none; /* nascosto di default */
}

.cookie-banner p {
  display: inline-block;
  margin: 0 10px 10px 0;
  font-size: 0.95rem;
}

.cookie-banner button {
  margin-left: 5px;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.cookie-banner #accept-cookies {
  background: #fff;
  color: #0C497C;
}

.cookie-banner .btn-decline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner a:hover {
  opacity: 0.85;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { display: none; flex-direction: column; background: #fff; position: absolute; top: 70px; right: 10%; width: 80%; padding: 20px; }
  .navbar.active { display: flex; }
  .hamburger { display: flex; }
  .hero-text { bottom: 20px; }
  .hero-text h1 { font-size: 1.6rem; }
}

/* ===== IMMAGINE PROMO CREO ===== */
.promo-creo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  background-color: #ffffff;
}

.promo-creo img {
  max-width: 500px; /* dimensione equilibrata */
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.promo-creo img:hover {
  transform: scale(1.03);
}

/* versione mobile */
@media (max-width: 768px) {
  .promo-creo {
    padding: 40px 0;
  }
  .promo-creo img {
    max-width: 320px;
    width: 90%;
  }
}
/* ===== GESTIONE COOKIE BUTTON ===== */
.manage-cookies-btn {
  margin-top: 10px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
}

.manage-cookies-btn:hover {
  background: #fff;
  color: #0C497C;
}

/* ===== SLOGAN ===== */
.slogan-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 10%;
  background: #f9f9f9;
}

.slogan-section h2 {
  color: #0C497C;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #0C497C;
  padding-bottom: 10px;
  margin: 0;
}
/* ===== CONTATTI ===== */
.contatti-section {
  background-color: #f9f9f9;
  padding: 80px 20px 60px;
  text-align: center;
}

.contatti-title {
  color: #0C497C;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contatti-linea {
  width: 80px;
  height: 3px;
  background-color: #0C497C;
  margin: 0 auto 40px;
  border-radius: 3px;
}

/* DESKTOP: box orizzontali */
.contatti-grid, .contatti-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: nowrap;
}

.contatto-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px 25px;
  width: 280px;
display: flex;            /* 👇 serve per centrare il contenuto */
  flex-direction: column;
  justify-content: center;  /* 👈 centra verticalmente */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contatto-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.contatto-box i {
  color: #0C497C;
  font-size: 2rem;
  margin-bottom: 15px;
}

.contatto-box h3 {
  color: #0C497C;
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.contatto-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.contatto-box a {
  color: #0C497C;
  text-decoration: none;
}

/* MOBILE: senza riquadri */
@media (max-width: 768px) {
  .contatti-section {
    background: #fff;
    padding: 40px 15px;
  }
  .contatti-grid, .contatti-cards {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  .contatto-box {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .contatto-box * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
  }
  .contatto-box + .contatto-box {
    margin-top: 4px !important;
  }
  .contatto-box i {
    font-size: 1.3rem !important;
  }
  .contatto-box h3 {
    font-size: 0.9rem !important;
  }
  .contatto-box p, .contatto-box a {
    font-size: 0.85rem !important;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #0C497C;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.footer a {
  color: #fff;
  text-decoration: underline;
}
.footer a:hover {
  opacity: 0.85;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0C497C;
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: none;
}

.cookie-banner button {
  margin-left: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-banner #accept-cookies {
  background: #fff;
  color: #0C497C;
}

.cookie-banner .btn-decline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* ===== Slogan ===== */
@media (max-width: 768px) {
  .slogan-section {
    padding: 50px 8%; /* meno spazio ai lati e sopra */
  }

  .slogan-section h2 {
    font-size: 0.9rem; /* 👈 regola qui la grandezza del testo su mobile */
    line-height: 1.4;
    letter-spacing: 0.5px;
    border-bottom-width: 1px; /* linea più sottile se vuoi */
  }
}

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {
  .navbar { 
    display: none; 
    flex-direction: column; 
    background: #fff; 
    position: absolute; 
    top: 70px;              /* distanza dal bordo alto */
    right: 0%;             /* distanza dal bordo destro */
    width: 60%;             /* larghezza menu mobile */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 999;
  }

  .navbar.active { 
    display: flex;          /* 👈 il JS aggiunge questa classe */
  }

  .navbar ul {
    flex-direction: column;
    gap: 25px;
    align-items: flex-end;

  }

  .navbar a {
    color: #0C497C;
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    width: 100%;
  }

  .hamburger {
    display: flex;          /* mostra l’icona solo su mobile */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .hamburger span {
    width: 25px;
    height: 3px;
    background: #0C497C;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Effetto "X" quando il menu è aperto */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* ===== RIDUZIONE BOTTONE MENU MOBILE ===== */
@media (max-width: 768px) {
  .navbar .btn-prenota {
    font-size: 0.9rem;      /* 👈 testo più piccolo */
    padding: 7.5px 15px;       /* 👈 meno spazio interno */
    border-radius: 18px;     /* 👈 angoli più morbidi */
    align-self: flex-end;    /* 👈 resta allineato a destra nel menu */
  }
}
