/* ========== BASE ========== */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #39414c;
  color: #222;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.text-warning {
  color: #FF9C00 !important;
}

.bg-warning {
  background-color: #FF9C00 !important;
}

.btn-warning {
  color: #fff !important;
  background-color: #FF9C00 !important;
  border-color: #EE9200 !important;
}

.btn-warning a:hover {
  background-color: #EE9200 !important;
  color: #343a40 !important;
}

.btn-outline-warning {
  color: #F58232 !important;
  border-color: #F58232 !important;
  background-color: #43515A !important;
}

.btn-outline-warning:hover {
  background-color: #43515A !important;
  color: #fff !important;
}

main.container {
  flex: 1 0 auto; /* spinge il footer in fondo */
}

/* ========== NAVBAR ========== */
.navbar-toggler:focus {
  box-shadow: none;
}

/* Link base */
.navbar-nav .nav-link {
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
}

/* Link attivo */
.navbar-nav .nav-link.active {
  color: #FF9C00 !important;
  position: relative;
}
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background-color: #FF9C00;
}

/* Desktop */
@media (min-width: 992px) {
  .navbar-top {
    background-color:  #39414c !important;
  }
  .navbar-bottom {
    background-color: #39414c !important;
  }
}

/* Mobile generale */
@media (max-width: 991.98px) {
  body {
    background-color: #ffffff; /* bianco su mobile */
  }

  .navbar-nav .nav-link {
    font-size: 1.4rem;
    margin-bottom: 0.02rem;
  }

  .navbar .fa-phone,
  .navbar .fa-envelope {
    font-size: 1.5rem;
  }

  .navbar-nav {
    text-align: left !important;
    align-items: flex-start !important;
  }

  .navbar-top,
  .navbar-bottom {
    background-color: #39414c !important;
  }
}

/* ========== SEZIONE LINEE GUIDA ========== */

/* Stile desktop */
.linee-guida i {
  width: 85px;
  height: 85px;
  border: 2px solid #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background-color: #fff;
}

.linee-guida i::before {
  font-size: 38px;
  color: #00AEEF;
}

.linee-guida h4 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0;
  color: #222 !important;
  text-transform: capitalize;
}

/* Mobile → niente linee e pallini */
@media (max-width: 991.98px) {
  .linee-guida .row.g-3 {
    row-gap: 0.8rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .linee-guida .row > div {
    max-width: 100%;
    border: none !important; /* elimino righe */
  }

  .linee-guida span {
    display: none !important; /* elimino pallini */
  }
}


/* ========== FOOTER ========== */
footer {
  flex-shrink: 0;
  background-color: #39414c !important;
  color: #fff;
}

footer h5 {
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: .3rem;
  margin-bottom: 1rem;
}

footer ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

footer ul li {
  margin-bottom: .5rem;
}

footer ul li i {
  width: 20px;
  color: #aaa;
}

/* Link footer */
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer mobile */
@media (max-width: 767.98px) {
  footer .d-flex.flex-md-row {
    flex-direction: column !important;
  }
  footer h5 {
    border-bottom: 1px solid rgba(255,255,255,0.3);
    width: 100%;
  }
  footer .d-flex > div {
    margin-bottom: 1.2rem;
  }
  footer ul li {
    font-size: 1rem !important;
  }
  footer ul.offset-list {
    padding-left: 1.5rem;
    position: relative;
  }
  footer ul.offset-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #aaa;
  }
}

.video-wrapper video {
  max-height: 480px !important;
  object-fit: cover;
}

@media (min-width: 768px) {
  .last-col {
    border-right: 1px solid #dee2e6;
  }
  .col-text {
   border-left: 3px solid #ffc107 !important; /* warning arancione */
   padding-left: 2rem !important;            /* spazio dal bordo */
 }
}

/* Logo offcanvas uguale al desktop */
.offcanvas .navbar-brand img {
  height: 40px !important;
}

.offcanvas .fa-xmark{
  font-size: 1.8rem !important;
   margin-left: 0.5rem;
   margin-top: 0.8rem !important;
}

.offcanvas .fa-phone,
.offcanvas .fa-envelope {
  font-size: 1.5rem !important;
  margin-left: 0.5rem;
}

.line-warning {
   height:3px;
   width:auto;
   margin:0 auto;
   background-image: linear-gradient(to left, transparent 0%, #fd7e14 100%);
   border-radius:150px;
}
