/* Colori e variabili CSS */
:root {
    --bg: #F0F4F9;
    --text: #1a1a1a;
    --card-bg: #ffffff;
    --border: #E1E4E8;
    --hero-grad-1: #ffffff;
    --hero-grad-2: #e9f3ff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-weight: 600;
}

.sezione {
    padding: 80px 0;
}

/* Navbar */

.navbar-glass {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-link {
    color: var(--text);
}

/* Hero */

.hero {
    background: linear-gradient(
        135deg,
        var(--hero-grad-1),
        var(--hero-grad-2)
    );
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
}

/* Buttons */

.btn-primario {
    background: linear-gradient(90deg, #007BFF, #4da3ff);
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primario:hover {
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

/* Cards */

.card-servizio {
    background-color: var(--card-bg);
    color: var(--text);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.card-servizio:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-servizio img {
    width: 60px;        /* larghezza SVG */
    height: 60px;       /* altezza SVG */
    object-fit: contain;
    display: block;     /* necessario per il margin auto */
    margin: 0 auto 15px auto; /* centra l'immagine e aggiunge spazio sotto */
}

.card-servizio h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Reviews */

.recensione-card {
    background-color: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    text-align: left;
}

.recensione-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.recensione-card .stars {
    color: #9F6000;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.recensione-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


/* White sections */

.bg-white {
    background-color: var(--card-bg) !important;
}

/* Logos */

.logo-container {
    max-width: 900px;
    margin: 0 auto;
}

.logo-marchio {
    opacity: 0.7;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.logo-marchio:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Why us section */

.sezione h3.highlight {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.sezione h3.highlight::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background: #007BFF; /* linea blu sotto il titolo */
    left: 50%;
    transform: translateX(-50%);
    bottom: -10%;
    border-radius: 2px;
}

.sezione p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
}

/* ==============================
   CONTATTI
============================== */

.map-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
}

/* Tabella Orari */
.orari-table {
    background-color: var(--card-bg);
    color: var(--text);
    border-color: var(--border);
    max-width: 400px;
}

.orari-table td {
    padding: 10px 12px;
    border-color: var(--border);
}

.orari-table td:first-child {
    width: 40%;
}

.privacy-page-link {
    text-decoration: underline;
}

/* ==============================
   FOOTER MIGLIORATO
============================== */

.footer-sezione {
    background-color: var(--card-bg); /* coerente con bg-white */
    padding: 40px 0;
}

.footer-sezione h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-sezione h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-sezione h3,
.footer-sezione h4 {
    margin-bottom: 0.5rem;
}

.footer-sezione p {
    margin-bottom: 0.25rem;
}

.footer-sezione a.footer-social {
    color: #34495e; /* colore icone social su bg bianco */
    transition: color 0.3s ease;
}

.footer-sezione a.footer-social:hover {
    color: #007BFF; /* effetto hover blu come bottoni */
    text-decoration: none;
}

.footer-sezione hr {
    opacity: 0.2;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 300px;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .cookie-buttons {
    justify-content: center;
  }
}

/* Footer */
.footer-sezione a {
    color: #e2e8f0;
    transition: color 0.3s ease;
}

.footer-sezione a:hover {
    color: #4da3ff; /* colore hover dei link */
    text-decoration: none;
}

/* Link generali per accessibilità */
a {
    color: #0051A5;
    text-decoration: none;
}

/* Touch target accessibility per link in form labels */
.form-check-label a,
label a {
    padding: 4px 2px;
    display: inline-block;
    min-height: 24px;
    line-height: 1.2;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

.hero-carousel {
  position: relative;
}

.hero-img {
  height: 50vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.45);
  color: white;
  z-index: 10;
}

.hero-overlay h1,
.hero-overlay p {
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.carousel-control-prev,
.carousel-control-next {
  z-index: 20;
}

@media (max-width: 768px) {
    .card-servizio:hover {
        transform: none;
        box-shadow: none;
    }

    .recensione-card:hover {
        transform: none;
        box-shadow: none;
    }

    .btn-primario:hover {
        transform: none;
        box-shadow: none;
    }

    .logo-marchio:hover {
        transform: none;
        opacity: 0.7;
    }
}

/* Preventivo Box */

.preventivo-box {
    background: linear-gradient(135deg, #f0f7ff, #e9f3ff);
    border: 1px solid #cce0ff;
    border-radius: 12px;
    padding: 24px;
}

.preventivo-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.preventivo-box .form-control,
.preventivo-box .form-check-input {
    border-color: #b8d4f0;
}

.preventivo-box .form-control:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.15);
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  width: 300px;
  border-radius: 8px;
}
.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}