html {
  max-width: 100%;
  overflow-x: clip; /* clip vs hidden: same visual result, but doesn't create a scroll container — keeps position:sticky working */
}

body {
    max-width: 100%;
    overflow-x: clip; /* same reason as html above */
    font-family: 'Public Sans', 'Inter', sans-serif !important;
}

.z-index-1100 {
    z-index: 1100 !important;
}

.custom-overflow {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.custom-overflow::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* FONTS */

.ag-note {
    font-size: 12px;
    font-weight: 500;
}

.ag-h1 {
    font-size: 70px;
    line-height: 106%;
    letter-spacing: -5%;
    font-weight: 400;
}

.ag-h4 {
    font-size: 30px;
    line-height: 106%;
    letter-spacing: -3%;
    font-weight: 500;
}

.ag-h5 {
    font-size: 22px;
    font-weight: 300;
}

.ag-h6 {
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -3%;
    font-weight: 600;
}

p, .p {
    font-size: 16px;
    font-weight: 300;
}

h1, .h1 {
    font-size: 70px;
    line-height: 106%;
    letter-spacing: -5%;
    font-weight: 400;
}

h2, .calculator-dots, .h2 {
    font-size: 48px;
    line-height: 106%;
    letter-spacing: -3%;
    font-weight: 500;
}

h3, .h3 {
    font-size: 38px;
    letter-spacing: -3%;
    font-weight: 600;
}

h4, .h4 {
    font-size: 30px;
    line-height: 106%;
    letter-spacing: -3%;
    font-weight: 500;
}

h5, .h5 {
    font-size: 22px;
    font-weight: 300;
}

h6, .h6 {
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -3%;
    font-weight: 600;
}

.ag-buttons {
    font-size: 16px !important;
    line-height: 130% !important;
    letter-spacing: -3% !important;
    font-weight: 500 !important;
}

/* FOOTER STAR — purple → green */
img[src="/assets/img/home/top/stella-viola.png"] {
    filter: hue-rotate(156deg) saturate(1.2) brightness(1.4);
}

/* HEADER */
.fixed-header {
    background-color: #3d6b15;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    padding-bottom: 10px !important;
}

/* ===========================
   REUSABLE BUTTONS
   =========================== */

/* Gradient button — CTA principale (viola → oro) */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    height: 44px;
    padding: 10px 19px;
    border-radius: 10px;
    background: linear-gradient(to right, #1e4a0a 15%, #D8BA39 87%);
    color: #fff !important;
    font-weight: 500;
    border: none;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-gradient:hover {
    opacity: 0.88;
    color: #fff !important;
}

/* Glass button — azioni secondarie (bianco 60%) */
.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    height: 44px;
    padding: 10px 19px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 130% !important;
    letter-spacing: -3% !important;
    border: none;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a !important;
}

@media (max-width: 1024px) {
    .ag-h1 {
        font-size: 55px;
    }
    h1, .h1 {
        font-size: 55px;
    }
    h2, .calculator-dots, .h2 {
        font-size: 32px;
    }
    .home-center-logo {
        height: 32px;
    }
    h6, .h6 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .ag-h1 {
        font-size: 48px;
    }
    .ag-h4 {
        font-size: 26px;
    }
    h1, .h1 {
        font-size: 48px;
    }
    h3, .h3 {
        font-size: 30px !important;
        font-weight: 500 !important;
    }
    h4, .h4 {
        font-size: 26px;
    }
    h5, .h5 {
        font-size: 20px;
    }
    p, .p {
        font-size: 14px;
    }
    .quotations-datetime {
        font-size: 20px;
    }

}

/* Iubenda modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.cookie-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 85%;
    height: 80%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
}

.cookie-modal-content button.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #555 !important;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
}

.cookie-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
}

.cookie-modal-content button#close-modal:hover {
    background: #000 !important;
}

.cookie-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.cookie-time {
  position: fixed;
  bottom: 90px;
  right: 15px;
  color: #00000000;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  border-bottom-left-radius: 28px;
  box-shadow: 0 3px 5px rgba(60, 8, 204, 0.034);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  width: 60px;
  height: 60px;
  background: url('/assets/img/custom/cookie.png') center/cover;
  z-index: 99999;
}
.grecaptcha-badge { bottom: 80px !important; }

.products-pagination .d-sm-flex > div:first-child {
    display: none !important;
}
