body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #1b2d23;
    background: #fff;
}

.icon-svg{
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* NAVBAR LOGO RESPONSIVE */
.navbar-logo {
    height: 100px !important; 
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    display: block;
    padding: 0;
    margin: 0 10px 0 0;
}

@media (max-width: 991px) {
    .navbar-logo {
        max-height: 120px;
        min-height: 32px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        max-height: 75px;
        min-height: 36px;
    }
}
.navbar-nav .nav-link {
    color: #14334a !important;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.90rem; 
    letter-spacing: 0.01em;
    padding: 6px 12px; 
    transition: color 0.18s;
    text-transform: uppercase;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover {
    color: #198754 !important;
    text-decoration: underline;
}


/* HERO CTA */
.underline-accent {
    color: #97c93f;
    position: relative;
    display: inline-block;
}

.underline-accent::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #97c93f 40%, #bfe4c3 100%);
    border-radius: 3px;
    margin: 8px 0 0 0;
    animation: underlineGrow 1.1s cubic-bezier(.63,.01,.33,1.02);
}

@keyframes underlineGrow {
    from { width: 0; opacity: 0.2; }
    to { width: 60%; opacity: 1; }
}

.hero-cta {
    position: relative;
    min-height: 470px;
    color: #fff;
    overflow: hidden;
    background: #14334a;
    display: flex;
    align-items: center;
    padding: 0;
}
.hero-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 1;
}
.hero-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #14334add 65%, #14334a99 100%);
    z-index: 2;
    pointer-events: none;
}
.hero-cta-content {
    position: relative;
    z-index: 3;
    padding: 64px 0 64px 0;
}
.hero-cta-title {
    font-size: 2.7rem;
    line-height: 1.09;
    font-weight: 800;
    color: #fff;
}
.hero-cta-title .accent {
    color: #97c93f;
}
.hero-cta-sub {
    font-size: 1.18rem;
    color: #f3f7f2;
    font-weight: 400;
}
.hero-cta-promo {
    font-size: 1.09rem;
    color: #fff;
    background: transparent;
    font-weight: 700;
    letter-spacing: .7px;
}
.btn-hero-cta {
    background: #97c93f;
    color: #14334a;
    font-weight: 700;
    border: 2px solid #97c93f;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 1.09rem;
    box-shadow: 0 6px 24px rgba(40, 60, 55, 0.11);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.18s, color 0.18s;
}
.btn-hero-cta:hover {
    background: #14334a;
    color: #97c93f;
    border: 2px solid #97c93f;
}
@media (max-width: 991px) {
    .hero-cta-title { font-size: 2rem; }
    .hero-cta-content { padding: 40px 0 40px 0; }
}
@media (max-width: 767px) {
    .hero-cta-content { padding: 26px 0 26px 0; }
    .hero-cta-title { font-size: 1.34rem; }
}

/* SEZIONE SERVIZI */
.section-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: #14334a;
    margin-bottom: 34px;
    letter-spacing: 0.5px;
}
.servizio-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(40, 60, 55, 0.06);
    transition: transform .16s, box-shadow .16s;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}
.servizio-box:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 8px 32px rgba(32,113,82,0.13);
}


.servizio-icon {
    font-size: 2.3rem;
    color: #198754;
}
.servizio-title {
    font-size: 1.22rem;
    color: #15472b;
    font-weight: 700;
    margin-bottom: .25rem;
}
.servizio-desc {
    color: #37524d;
    font-size: 1.08rem;
    line-height: 1.6;
    margin-bottom: 0;
}
@media (max-width: 991px) {
    .servizio-box {
        min-height: 190px;
        padding: 1.3rem 1rem;
    }
    .section-title { font-size: 1.5rem; }
}

/* SEZIONE APPARECCHIO */
.tech-section {
    background: #f7faf8;
    border-radius: 0;
}
.tech-img {
    max-width: 340px;
    min-width: 180px;
    border-radius: 18px;
    box-shadow: 0 8px 36px rgba(40, 60, 55, 0.09);
}
.tech-title {
    color: #15472b;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: 0.3px;
}
.tech-lead {
    color: #2d4b3b;
    font-size: 1.17rem;
    font-weight: 600;
}
.tech-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.2rem;
}
.tech-list li {
    padding-left: 2rem;
    position: relative;
    color: #365c44;
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
}
.tech-list li:before {
    content: "\2713";
    color: #97c93f;
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: 900;
    font-size: 1.13rem;
}
.tech-badge {
    background: #97c93f;
    color: #14334a;
    padding: 8px 20px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .5px;
}
@media (max-width: 991px) {
    .tech-section { padding: 2.5rem 0 2.5rem 0; }
    .tech-title { font-size: 1.22rem; }
    .tech-img { max-width: 210px; }
    .tech-list li { font-size: 1rem; }
}

/* SEZIONE MARCHI & PARTNER */
.brands-section,
.partners-section {
  background: #f8faf8;
  border-radius: 0;
}

.brand-logo,
.partner-logo {
  display: block;
  box-sizing: border-box;


  width: min(200px, 100%);
  max-width: 100%;

  height: 90px;
  object-fit: contain;

  filter: grayscale(10%) brightness(98%);
  transition: filter 0.18s, transform 0.18s;

  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(40, 60, 55, 0.06);
  padding: 12px 18px;

  margin-left: auto;
  margin-right: auto;
}

.brand-logo:hover,
.partner-logo:hover {
  filter: none;
  transform: scale(1.07);
  box-shadow: 0 6px 22px rgba(32, 113, 82, 0.12);
}

.partner-name {
  font-size: 1rem;
  font-weight: 500;
  color: #1b2d23;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

.partners-section {
  background: #f2f7f4;
}

/* Tablet / small */
@media (max-width: 767px) {
  .brand-logo,
  .partner-logo {
    padding: 10px 12px;   
  }
}

/* Mobile */
@media (max-width: 576px) {
  .brand-logo,
  .partner-logo {
    width: min(170px, 100%);  
    padding: 10px 12px;
  }
}
/* SEZIONE MAPPA */
.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 42%;
    height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(40,60,55,0.11);
}
.map-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 767px) {
    .map-responsive { padding-bottom: 62%; }
}

/* SEZIONE CONTATTI */
.contact-section {
    background: #f7faf8;
}
.contact-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 36px rgba(40,60,55,0.13);
    font-size: 1.15rem;
    color: #14334a;
}
.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.07rem;
    margin-bottom: 1rem;
}
.contact-icon {
    color: #198754;
    font-size: 1.4rem;
    min-width: 26px;
    display: inline-block;
}
.contact-link {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.16s;
    font-size: 1.07rem;
}
.contact-link:hover {
    color: #134c3d;
    text-decoration: underline;
}
@media (max-width: 767px) {
    .contact-box { font-size: 1rem; padding: 1.3rem; }
    .contact-icon { font-size: 1.15rem; }
}

/* FOOTER */
.footer-bar {
    background: #14334a;
    color: #eafaf1;
    font-size: 0.98rem;
    letter-spacing: .05px;
    border-top: 3px solid #97c93f;
}
.footer-logo {
    max-width: 50px;
    height: auto;
    filter: brightness(1.07) drop-shadow(0 3px 9px rgba(20,51,74,0.08));
    margin-bottom: 2px;
}
.footer-link, .footer-credits {
    color: #97c93f;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
    word-break: break-all;
}
.footer-link:hover, .footer-credits:hover {
    color: #fff36d;
    text-decoration: underline;
}
.footer-credits {
    font-weight: 700;
}
.footer-fiscale-info {
    color: #eafaf1 !important;
    font-size: 0.95em;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 3px;
}
@media (max-width: 767px) {
    .footer-bar { font-size: 0.91rem; padding-left: 2px; padding-right: 2px;}
    .footer-logo { max-width: 38px; }
    .footer-fiscale-info { font-size: 0.92em; }
}

.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;

    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));

    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(44,68,57,0.22);
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2000;

    font-size: 2.2rem;
    transition: background 0.18s, transform 0.13s;


    transform: translateZ(0);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #1ebea5;
    color: #fff;
    transform: scale(1.07) translateZ(0);
    text-decoration: none;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 46px;
        height: 46px;
        font-size: 1.45rem;

        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}

.about-section {
    background: #f2f7f4;
}
.about-box {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 36px rgba(40,60,55,0.10);
    max-width: 790px;
}
.about-title {
    color: #14334a;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: .5px;
}
.about-icon {
    font-size: 2.3rem;
    color: #198754;
    margin-bottom: 5px;
}
.about-quote {
    border-left: 4px solid #97c93f;
    padding-left: 16px;
    color: #37524d;
    font-size: 1.18rem;
    font-style: italic;
    margin-bottom: 1.4rem;
}
.about-mission {
    font-size: 1.13rem;
    letter-spacing: .2px;
}
@media (max-width: 767px) {
    .about-box { padding: 1.5rem .8rem; }
    .about-title { font-size: 1.3rem; }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
section[id] { scroll-margin-top: 80px; }
