/* ========== Layout base ========== */
body {
  padding-top: 0px; /* margine superiore sotto la navbar (logo 100px) */
}

/* Link nelle griglie */
.row a { text-decoration: none; color: #59918c; }
.row a:hover { text-decoration: none; color: #3f7b76; }

/* ========== HERO full screen con overlay ========== */
/* Immagine di sfondo full screen */
.hero {
  height: 100vh;
  background: url('/images/pegaso.png') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay scuro sopra l'immagine per leggibilità testo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* Contenuto centrato e sopra l’overlay */
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

/* ========== Navbar trasparente e stato scrolled ========== */
/* Sempre trasparente di base */
.navbar {
  background: transparent !important;
  transition: background 0.3s ease, box-shadow 0.3s ease-in-out;
}

/* Visibile quando aggiungi la classe .scrolled via JS (opzionale) */
.navbar.scrolled {
  background: rgba(0,0,0,0.7) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* ========== Titoli hero (facoltativi se usi altre componenti) ========== */
.title {
  font-size: 2.5em;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.6em;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.3);
}

/* ========== Contenitori immagine ========== */
.image-container {
  width: 100%;
  max-width: 100%;
  max-height: 75vh; /* massimo 75% dell'altezza viewport */
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 6px 0px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== Card servizi ========== */
.service-card {
  background-color: #f8f9fa;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  background-color: #e8dfdf; /* chiaro */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card h5 {
  margin-top: 15px;
  font-weight: 600;
  color: #2c2e35;
}

.service-card img {
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.02);
}

.service-card i.icon {
  font-size: 40px;
  color: #2c2e35; /* grigio scuro iniziale */
  transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover i.icon {
  color: 9a1a19;
  transform: scale(1.2);
}

/* ========== Prezzi/Quantità ========== */
/* Testo "Quantità:" e "€. " */
.qty,
.price {
  color: #111;      /* nero */
  font-size: 0.95rem;
}

/* Solo il valore (es. 5 litri, 45,00) */
.qty .price,
.price .price {
  color: green;     /* verde */
  font-size: 1.6rem;
  font-weight: bold;
}

/* ========== Cookie banner ========== */
#cookie-banner {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 90%;
  max-width: 420px;
  background-color: #2c2e35;
  color: #fff;
  padding: 1.5em 1.5em 1em;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#cookie-banner.show {
  opacity: 1;
  visibility: visible;
}

#cookie-banner p {
  font-size: 14px;
  margin-bottom: 1em;
}

#cookie-banner a {
  color: #59918c;
  text-decoration: underline;
  font-weight: bold;
}

#cookie-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#cookie-banner button {
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#cookie-banner .accept {
  background-color: #59918c;
  color: white;
}

#cookie-banner .reject {
  background-color: #444;
  color: white;
}

#cookie-banner .close-banner {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}

/* ========== Immagini equal height ========== */
.img-equal {
  height: 270px;
  width: 100%;
  object-fit: cover;
  object-position: bottom; /* 👉 mostra la parte bassa dell'immagine */
  border-radius: .25rem;
  box-shadow: 5px 5px 6px 0px #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-equal:hover {
  transform: translateY(-5px);
  box-shadow: 7px 7px 10px 0px #000000; /* ombra più forte al passaggio */
}

/* ========== Utilità colori ========== */
.text-brown {
  color: #8B5E3C; /* alternative: #6c4f3d, #7B4F2D, #A0522D */
}

/* ========== Responsive ritocchi ========== */
@media (max-width: 991.98px) {
  /* Se il menu offcanvas non è usato e vuoi sfondo nel collapse, attivalo:
  .navbar-collapse { background-color: rgba(0,0,0,0.9); padding: 1rem; } */

  /* Hero un filo più basso su schermi piccoli, se preferisci:
  .hero { height: 88vh; } */
}

