/* ========== 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; }

/* Layout 25/75 */
.hero-2575{
  display: grid;
  grid-template-columns: 25% 75%;
  min-height: 100svh;    <li class="nav-item"><a class="nav-link ps-3" href="/servizi/google-ads">— Google Ads</a></li>
  background:#2c2e35; color:#fff; overflow:hidden;
}

/* Sinistra (25%) */
.hero-left{ background:#2c2e35; display:flex; align-items:center; }
.container-left{ padding: 6rem 2rem 3rem; max-width: 520px; margin:auto; }
.hero-eyebrow {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); /* min 1.5rem, max 2.25rem */
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 .5rem 0;
  color: #f5f7fa;
}
.hero-desc{ font-size:1.075rem; opacity:.92; margin-bottom:1rem; }
.hero-ctas{ display:flex; gap:.6rem; flex-wrap:wrap; }

/* Destra (75%) */
.hero-right{ position:relative; min-height:100%; }
.hero-bg, .hero-bg-next{
  position:absolute; inset:0;
  background-size:cover; background-position:center 60%; background-repeat:no-repeat;
  transition: opacity 900ms ease; will-change: opacity, background-image;
}
.hero-bg-next{ opacity:0; }
.hero-bg-next.is-visible{ opacity:1; }
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.36)); }

/* Caption dentro la foto */
.hero-caption{
  position:absolute; left:3.5vw; right:3.5vw; bottom:6vh; z-index:2; color:#fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.36);
}
.hero-caption .display-5{ line-height:1.1; }

/* Navbar più scuretta (resta trasparente) */
.navbar.bg-transparent{
  background-color: rgba(20,22,28,0.46) !important;
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.navbar.bg-transparent:hover,
.navbar.scrolled{ background-color: rgba(20,22,28,0.66) !important; box-shadow: 0 10px 28px rgba(0,0,0,0.22); }

/* Mobile: stack pulito */
@media (max-width: 991.98px){
  .hero-2575{ grid-template-columns: 1fr; grid-auto-rows:auto 55vh; }
  .container-left{ padding: 5.25rem 1.25rem 1.75rem; text-align:center; }
  .hero-right{ min-height:55vh; }
  .hero-bg, .hero-bg-next{ background-position:center 70%; }
  .hero-caption{ left:6vw; right:6vw; bottom:4vh; }
}

/* Riduci animazioni se richiesto dall'utente */
@media (prefers-reduced-motion: reduce){
  .hero-bg, .hero-bg-next{ transition:none; }
}



/* bordo bordeux navbar */
.custom-border {
  border-bottom: 5px solid #9a1a19;
}


/* ========== 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: black;
  font-weight: bold;
  padding: 0.1em;
}

/* base = smartphone */
.img-equal{
  height: 300px;
  width: 100%;
  object-fit: cover;
  object-position: bottom;
  border-radius: .25rem;
  box-shadow: 5px 5px 6px 0 #000;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* desktop (PC) */
@media (min-width: 992px){ /* breakpoint Bootstrap "lg" */
  .img-equal{ height: 600px; }
}

.img-equal:hover{
  box-shadow: 7px 7px 10px 0 #000;
}






/* ========== 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; } */
}


/* Navbar trasparente ma più scura */
.navbar.bg-transparent{
  background-color: rgba(20,22,28,0.46) !important; /* ~#0e1016 a 46% */
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}

/* Al passaggio e quando si scrolla: un filo più scura */
.navbar.bg-transparent:hover,
.navbar.scrolled{
  background-color: rgba(20,22,28,0.66) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

/* Link navbar: legibili e con hover chiaro */
.navbar .nav-link{
  color: rgba(255,255,255,0.92);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{
  color:#fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Dropdown più coerente col tema scuro */
.navbar .dropdown-menu{
  background-color: rgba(20,22,28,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.navbar .dropdown-item{
  color: rgba(255,255,255,0.92);
}
.navbar .dropdown-item:hover{
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Offset per evitare sovrapposizione con navbar fissa */
.nav-offset-hero { height: 70px; }
@media (max-width: 991.98px){
  .nav-offset-hero { height: calc(84px + env(safe-area-inset-top, 0px)); }
}






