/* custom.css - Stili personalizzati Power Rent */

 
      #cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #1C4594;
      color: white;
      padding: 1rem;
      z-index: 1050;
      box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    }
    #cookie-banner p {
      margin-bottom: 0.5rem;
    }
    #cookie-banner a {
      color: #B7E3EE;
      text-decoration: underline;
    }
  



html {
  font-size: 16px; /* Base per i calcoli in rem */
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f8f8f8; /* Grigio molto chiaro, appena meno bianco */
  color: #333;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: #444;
  font-weight: 700;
}

/* Navbar con sfumatura */
.navbar {
  background: linear-gradient(90deg, #1C4594, #368EB6);
  border-bottom: 2px solid #ffffff;
}

.navbar-brand {
  color: #ffffff;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
}

.navbar-brand img {
  height: 2.5rem;       /* 40px convertiti in rem */
  margin-right: 0.5rem;  /* 8px convertiti in rem */
}

.navbar .nav-link {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #B7E3EE;
}

/* Pulsanti primari */
.btn-primary {
  background-color: #368EB6;
  border-color: #368EB6;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1C4594;
  border-color: #1C4594;
  box-shadow: 0 0 0 0.2rem rgba(28, 69, 148, 0.5);
}

/* Hero Section */
.bg-secondary {
  background-color: #368EB6 !important;
  color: #ffffff;
}

.hero .container {
  max-width: 1140px;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff;
}


/* Banner personalizzato */

.custom-banner {
  /*background: linear-gradient(to right, #007bff, #00c6ff);*/
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  height: 90px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 20px;
  max-width: 1140px;
  border-radius: 8px;
}

.banner-icon {
  height: 90px; /* aumentato del 50% rispetto a 32px */
  width: auto;
}

.banner-text h5 {
  color: white;
  font-size: 1.2rem;
}

.banner-text p {
  color: white;
  font-size: 0.9rem;
}

.banner-img {
  max-height: 50px;
  width: auto;
}

.btn-banner {
  background-color: #ffffff;
  color: #1C4594;
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-banner:hover,
.btn-banner:focus {
  background-color: #B7E3EE;
  color: #0c1a2b;
  box-shadow: 0 0 0 3px rgba(183, 227, 238, 0.4);
}


@media (max-width: 768px) {
  .custom-banner {
    flex-direction: column;
    height: auto;
    padding: 20px;
    text-align: center;
    gap: 1rem;
  }
.custom-banner .btn-banner {
  margin-top: 0.5rem;
}
  .banner-img {
    max-height: 40px;
  }
}

/* Sezione Contatti */
#contatti {
  background-color: transparent;
  color: #444;
}

/* Footer */
footer.footer {
  background: linear-gradient(90deg, #1C4594, #368EB6);
  color: #ffffff;
  padding: 1.25rem 0;
  font-size: 0.875rem;
  text-align: center;
}

/* Social Icons in Contatti */
.social-icons i {
  font-size: 1.5rem;
  color: #368EB6;
}

.social-icons a {
  margin: 0 0.5rem;
}

/* Responsive adjustments */

/* Tablet: dispositivi tra 768px e 991px */
@media (max-width: 991px) and (min-width: 768px) {
  .navbar-brand img {
    height: 2.2rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .card-text {
    font-size: 0.8125rem;
  }
}

/* Smartphone: fino a 767px */
@media (max-width: 767px) {
  .navbar-brand img {
    height: 1.875rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .card-text,
  .card-title {
    text-align: center;
  }
}

/* Breakpoint aggiuntivo per schermi molto grandi */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Personalizzazione del dropdown per la lingua */
.language-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
}

.language-btn:hover,
.language-btn:focus {
  background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
  width: 20px;
  height: auto;
  margin-right: 0.3rem;
}

.dropdown-menu {
  background: transparent;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  color: #ffffff;
  font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Pulsanti primari */
.btn-primary {
  background-color: #368EB6;
  border-color: #368EB6;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1C4594;
  border-color: #1C4594;
  box-shadow: 0 0 0 0.2rem rgba(28, 69, 148, 0.5);
}

/* Hero Section */
.bg-secondary {
  background-color: #368EB6 !important;
  color: #ffffff;
}

.hero .container {
  max-width: 1140px;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff;
}

/* Sezione Offerte Speciali (Cards) */
.card {
  box-shadow: 6px 6px 12px rgba(28, 69, 148, 0.3); /* ombra solo a destra e in basso */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 16px rgba(28, 69, 148, 0.4); /* ombra più intensa in hover */
}


.card-title {
  color: #1C4594;
  font-weight: bold;
  font-size: 1.125rem;
  font-family: 'Raleway', sans-serif;
}
.card-img-top {
  height: 200px;           /* altezza fissa */
  object-fit: cover;       /* ritaglia l'immagine per riempire senza deformare */
}

.brand-overlay {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 48px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  background-color: white;
  border-radius: 0.25rem;
  padding: 2px 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.card-text {
  font-size: 0.875rem;
}

.price-label {
  background-color: #368eb6;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1.45rem;
  font-family: 'Rubik', 'Segoe UI', sans-serif;
  box-shadow: 6px 6px 12px rgba(28, 69, 148, 0.3);
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.15rem;
}


.euro-symbol, .nota-iva {
	font-weight: normal;
	/*line-height: 1;*/
}
.euro-symbol {
  font-size: 0.85em;
}
.nota-iva {
  font-size: 0.7em;
  line-height: 1.5rem;
}



/* Sezione Contatti */
#contatti {
  background-color: transparent;
  color: #444;
}

/* Footer */
footer.footer {
  background: linear-gradient(90deg, #1C4594, #368EB6);
  color: #ffffff;
  padding: 1.25rem 0;
  font-size: 0.875rem;
  text-align: center;
}

/* Social Icons in Contatti */
.social-icons i {
  font-size: 1.5rem;
  color: #368EB6;
}

.social-icons a {
  margin: 0 0.5rem;
}

/* Responsive adjustments */

/* Tablet: dispositivi tra 768px e 991px */
@media (max-width: 991px) and (min-width: 768px) {
  .navbar-brand img {
    height: 2.2rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .card-text {
    font-size: 0.8125rem;
  }
}

/* Smartphone: fino a 767px */
@media (max-width: 767px) {
  .navbar-brand img {
    height: 1.875rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .card-text,
  .card-title {
    text-align: center;
  }
}

/* Breakpoint aggiuntivo per schermi molto grandi */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Personalizzazione del dropdown per la lingua */
.language-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.9rem;
}

.language-btn:hover,
.language-btn:focus {
  background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
  width: 20px;
  height: auto;
  margin-right: 0.3rem;
}

.dropdown-menu {
  background: transparent;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
  color: #ffffff;
  font-size: 0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* finestra modale dettagli */
.custom-modal {
  max-width: 90vw;
  border-radius: 0.5rem;
  box-shadow: 6px 6px 12px rgba(28, 69, 148, 0.3);
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.rata-evidenziata {
  background-color: #368eb6;
  color: #fff;
  padding: 6px 12px;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 6px;
  display: inline-block;
  margin-top: 5px;
}

/* Lista servizi nella modale */
.servizi-compatti {
  font-size: 0.85rem;
  padding-left: 0;
  padding-right: 0;
}
.servizi-compatti .list-group-item {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Tabelle modale */
.tabella-offerte,
.tabella-offerte-interna {
  font-size: 0.85rem;
  font-family: monospace;
}
.tabella-offerte-interna th,
.tabella-offerte-interna td {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* Animazione freccia */
.transition-chevron {
  transition: transform 0.3s ease;
}
.bi-chevron-up.transition-chevron {
  transform: rotate(180deg);
}

#richiestaInfoModal .form-label {
  font-weight: 600;
  color: #1C4594;
}

#richiestaInfoModal .form-control {
  border-radius: 0.375rem;
}

#richiestaInfoModal .modal-body {
  padding-top: 1.5rem;
}

#richiestaInfoModal .modal-content {
  padding: 3rem;
}

#richiestaInfoModal .form-check-label {
  font-weight: 500;
  margin-right: 1rem;
}

.azienda-only {
  transition: all 0.3s ease;
}