@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    .hidden-desktop {
        display: block !important;
    }
}
@media (min-width: 768px) {
    .hidden-desktop {
        display: none !important;
    }
}

html{
    scroll-behavior:smooth;
    font-size:15px;
}

body{
    font-family:"Montserrat","Century Gothic","Futura","Trebuchet MS",Arial,sans-serif;
    color:#161922;
    background:#ffffff;
    line-height:1.45;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow-x:hidden;
}

h1,h2,h3,h4,h5,h6{
    font-family:"Montserrat","Century Gothic","Futura","Trebuchet MS",Arial,sans-serif;
    font-weight:700;
    color:#000000;
    margin:0px;
}

p,li,a,span{
    font-family:"Montserrat","Century Gothic","Futura","Trebuchet MS",Arial,sans-serif;
    color:#3E4248;
}

a{
    color:inherit;
    text-decoration:none;
}

b{
    font-weight: 600;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

:root{
    --primary-color:#0f2a44;   /* blu */
    --accent-color:#C1022C;    /* rosso */
    --text-color:#161922;
    --light-gray:#f6f6f6;
}

/* CONTAINER */
.container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* BOTTONI BASE */
button,
.btn{
    font-family:"Montserrat","Century Gothic","Futura","Trebuchet MS",Arial,sans-serif;
    border:none;
    cursor:pointer;
}

body a.btn{
    background: #C1022C;
    color: #fff;
    padding:10px 30px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    font-size: 14px;
}

/* SELEZIONE TESTO */
::selection{
    background:rgba(179,0,45,.25);
    color:#161922;
}


/* HEADER */
.site-header{
    position:absolute;
    top:20px;
    left:0;
    width:100%;
    padding:0px 10px;
    z-index:1000;
    pointer-events:none; /* il video passa sotto */
}
.site-header .header-container{
    max-width:1200px;
    margin:0 auto;
    background:#ffffff;
    border-radius:20px;
    padding:6px 10px;
    display:flex;
    align-items:center;
    gap:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    pointer-events:auto;
}
/* LOGO */
.site-header .logo img{
    margin-left: 10px;
    height:48px;
}

/* NAV DENTRO HEADER */
.site-header nav{
    flex:1;
    background:transparent;
}

/* MENU */
.site-header .menu{
    display:flex;
    justify-content:center;
    gap:28px;
}

/* CTA */
.site-header .contact-button{
    background:#C1022C;
    color:#fff;
    padding:10px 30px;
    border-radius:10px;
    font-weight:700;
    white-space:nowrap;
    font-size: 14px;
}

/* MOBILE */
@media(max-width:768px){
    .site-header{
        top:10px;
    }

    .site-header .header-container{
        border-radius:24px;
        padding:10px 14px;
    }

    .site-header .cta-button{
        display:none;
    }
}

.main-nav{
    flex:1;
}
.menu{
    list-style:none;
    display:flex;
    gap:28px;
    justify-content:center;
    margin:0;
    padding:0;
}
.menu>li{position:relative}
.menu>li>a{
    font-weight:600;
    color:#000;
    padding:10px 0;
    display:flex;
    font-size: 14px;
    align-items:center;
    gap:6px;
    text-transform: uppercase;
}
.submenu-arrow{
    border:solid #000;
    border-width:0 1px 1px 0;
    padding:3px;
    transform:rotate(45deg);
    margin-top:-6px;
    font-size: 12px;
}

/* SUBMENU */
.submenu-list{
    position:absolute;
    top:100%;
    right:0;
    background:#fff;
    min-width:180px;
    list-style:none;
    padding:8px 0;
    display:none;
    box-shadow:0 8px 20px rgba(0,0,0,.25);
    border-radius:8px;
}
.submenu-list li{
    position:relative;
}
.submenu-list a{
    padding:8px 16px;
    display:block;
    font-weight:600;
    white-space:nowrap;
}
.has-submenu:hover > .submenu-list{
    display:block;
}

/* SUB-SUBMENU */
.submenu-list .submenu-list{
    top:0;
    right:100%;
}

/* MOBILE */
.mobile-menu-toggle{
    display:none;
    font-size:26px;
}
.main-nav img, .close-menu{
    display:none;
}

@media(max-width:768px){
    .site-header .header-container{
        gap: 18px;
    }
    .mobile-menu-toggle{display:block}
    .cta-button{display:none}

    .main-nav{
        position:fixed;
        inset:0;
        background:#ffffff !important;
        display:none;
        padding:20px;
    }
    .main-nav.open{display:block}
    .main-nav.open img{
        display:block;
        width:70%;
    }

    .close-menu{
        display:block;
        color:#000000;
        font-size:28px;
        position:absolute;
        top:24px;
        right:16px;
    }

    .site-header .menu{
        flex-direction:column;
        gap:10px;
        margin-top:20px;
    }
    
    .site-header .logo img{
        margin-left: 0px;
    }
    
    .site-header .contact-button{
        padding:10px;
        position: absolute;
        right:20px;
        top:15px;
    }
    
    .btn{
        padding:10px;
    }
    
    .menu a{
        color:#000;
        font-size: 14px;
        padding:14px 0;
        font-weight: 600;
        text-transform: uppercase;
    }

    .submenu-list{
        position:relative;
        box-shadow:none;
        background:transparent;
        display:none;
        padding-left:20px;
    }

    .has-submenu > a{justify-content:space-between}
    .has-submenu.open > .submenu-list{display:block}

    .submenu-arrow{
        border-color:#fff;
        transform:rotate(45deg);
    }
}

/* HOME VIDEO HERO */
.home-video{
    position:relative;
    width:100%;
    height:78vh;
    min-height:520px;
    overflow:hidden;
}

.home-video.has-image{
    min-height:0px;
    height:350px;
}

/* BASE BG */
.home-video-bg{
    position:absolute;
    inset:0;
    z-index:1;
    overflow:hidden;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}

/* VIDEO */
.home-video.has-video .home-video-bg{
    background:none;
}

.home-video-media{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* IMAGE FALLBACK */
.home-video.has-image .home-video-bg{
    background-color:#000; /* sicurezza */
}

/* PREVIENE SPAZI BIANCHI */
.home-video-bg video{
    display:block;
}

/* OVERLAY */
.home-video-home-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:2;
}

/* CONTENT */
.home-video-content{
    position:relative;
    z-index:3;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:0 20px;
}

.home-video-content h1{
    color:#ffffff;
    font-size:clamp(36px,4vw,64px);
    font-weight:700;
    line-height:1.1;
    letter-spacing:.5px;
}

/* BOTTOM SHAPE */
.home-video-bottom-shape{
    position:absolute;
    bottom:-1px;
    left:0;
    width:100%;
    height:40px;
    background:#ffffff;
    border-top-left-radius:100% 80px;
    border-top-right-radius:100% 80px;
    z-index:4;
}

/* RESPONSIVE */
@media(max-width:768px){
    .home-video{
        height:70vh;
        min-height:420px;
    }
    .home-video-bottom-shape{
        height:80px;
        border-top-left-radius:100% 60px;
        border-top-right-radius:100% 60px;
    }
}

@media(max-width:480px){
    .home-video{
        height:60vh;
        min-height:360px;
    }
    .home-video-content h1{
        font-size:32px;
    }
}

/* HOME SECURITY */
.home-security{
    background:#ffffff;
    padding:20px 0;
}

.home-security-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:60px;
    align-items:center;
}

/* --- FIX SEZIONE HOME SECURITY --- */

/* TITLE: linea rossa a tutta altezza del titolo */
.home-security-title{
    display:flex;
    align-items:stretch;      /* <-- fondamentale */
    gap:18px;
    margin-bottom:28px;
}

.home-security-line{
    width:3px;
    background:#C1022C;
    align-self:stretch;       /* prende tutta l’altezza */
}

/* Titolo leggermente più corposo come prototipo */
.home-security-title h2{
    font-size:44px;
    line-height:1.1;
    font-weight:700;
    margin:0px;
}

.home-security-lead, .home-security-desc{
    padding-left: 20px;
}

.home-security-btn{
    display: block;
    float: left;
    margin-top: 10px;
    margin-left: 18px;    
}

/* --- IMMAGINE DESTRA PIÙ GRANDE --- */
.home-security-container{
    grid-template-columns:1fr 1fr;   /* più spazio al visual */
}

.home-security-visual img{
    width:100%;
    max-width:560px;          /* prima era troppo piccolo */
    margin-left:auto;
}

/* Spingi visivamente il blocco a destra come nel mockup */
.home-security-visual{
    display:flex;
    justify-content:flex-end;
}

/* --- RESPONSIVE --- */
@media(max-width:992px){
    .home-security-title h2{
        font-size:36px;
    }

    .home-security-visual img{
        max-width:520px;
    }
}

@media(max-width:768px){
    .home-security-container{
        grid-template-columns:1fr;
    }

    .home-security-visual{
        justify-content:center;
    }

    .home-security-visual img{
        max-width:100%;
    }

    .home-security-title h2{
        font-size:32px;
    }
    
    body a.btn.home-security-btn {
        margin: 20px auto;
        display: block;
        float: none;
        width: 200px;
        text-align: center;
        padding: 10px 0px;
    }
}

/* HOME SERVICES */
.home-services{
    background:#ffffff;
    padding:20px 0 0;
}

/* TITOLO */
.home-services-header{
    text-align:center;
    margin-bottom:20px;
}
.home-services-header h2{
    font-size:50px;
    font-weight:700;
    color:#161922;
    margin:10px 0px;
}

/* SFONDO GRIGIO */
.home-services-bg{    
    padding:60px 0 80px;
    position:relative;
}

.home-services-bg-image{
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    height: 50%;
}

.home-services-bg-image img{
    height: 100%;
    width: 100%;
}

/* LINEA ROSSA */
/*.home-services-bg::before{
    content:"";
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    height:2px;
    background:#C1022C;
    z-index:1;
}*/

/* CONTAINER CARD */
.home-services-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:120px;
    position:relative;
    z-index:2;
}

/* CARD */
.home-service-card{
    background:#ffffff;
    border-radius:18px;
    padding:28px 20px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

/* ICONA SERVIZIO CON ROMBO */
.home-service-icon{
    width:72px;
    height:72px;
    margin:0 auto 18px;
    background:url("/frontend/images/home-red-square.png") center/contain no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
}

.home-service-icon i{
    color:#ffffff;
    font-size:32px;
    line-height:1;
}

/* TESTI */
.home-service-card h3{
    font-size:18px;
    font-weight:700;
    margin-bottom:10px;
}
.home-service-card p{
    font-size:14px;
    color:#555;
    margin-bottom:18px;
    line-height:1.4;
}

/* BTN */
.home-service-btn{
    display:inline-block;
    background:#C1022C;
    color:#fff;
    padding:8px 18px;
    border-radius:10px;
    font-size:12px;
    font-weight:700;
}

/* RESPONSIVE */
@media(max-width:992px){
    .home-services-container{
        gap: 60px;
    }
}

@media(max-width:768px){
    .home-services{
        padding:70px 0 0;
    }

    .home-services-container{
        grid-template-columns:1fr;
        gap:30px;
    }
    
    .home-service-card{
        max-width: 360px;
        margin:0 auto;
    }

    .home-services-header h2{
        font-size:28px;
    }

    .home-services-bg::before{
        display:none;
    }
}

/* HOME CTA */
.home-cta{
    position:relative;
    width:100%;
    height:52vh;
    min-height:360px;
    overflow:hidden;
}

/* BACKGROUND */
.home-cta-bg{
    position:absolute;
    inset:0;
    z-index:1;
}
.home-cta-bg img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* OVERLAY */
.home-cta-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:2;
}

/* CONTENT */
.home-cta-bg{
    background-image: url(/frontend/images/home-cta.png);
    background-size: cover;
    background-position: top;
    
}
.home-cta-content{
    position:relative;
    z-index:3;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:0 20px;    
}

.home-cta-content h2{
    color:#ffffff;
    font-size:clamp(28px,3.6vw,48px);
    font-weight:700;
    line-height:1.15;
    margin-bottom:22px;
}

/* BUTTON */
.home-cta-btn{
    display:inline-block;
    background:#C1022C;
    color:#ffffff;
    padding:10px 26px;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.5px;
}

/* RESPONSIVE */
@media(max-width:768px){
    .home-cta{
        height:46vh;
        min-height:300px;
    }
}

@media(max-width:480px){
    .home-cta-content h2{
        font-size:20px;
        line-height: 30px;
    }
}

/* HOME PARTNERS */
.home-partners{
    background:#ffffff;
    padding:40px 0;
}

.home-partners h2{
    text-align: center;
    font-size: 40px;
    margin-bottom:20px;
}

.home-partners-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 40px;
    position:relative;
    display:flex;
    align-items:center;
}

/* TRACK */
.home-partners-track{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
    align-items:center;
    width:100%;
}

/* LOGO */
.home-partner{
    display:flex;
    align-items:center;
    justify-content:center;
}
.home-partner img{
    max-width:90%;
    width:auto;
    height:auto;
    opacity:.9;
    transition:opacity .3s, filter .3s;
}
.home-partner img:hover{
    opacity:1;
    filter:none;
}

/* NAV */
.home-partners-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:none;
    border:none;
    font-size:32px;
    color:#bbb;
    cursor:pointer;
    padding:10px;
}
.home-partners-nav.prev{left:0}
.home-partners-nav.next{right:0}

/* RESPONSIVE */
@media(max-width:992px){
    .home-partners-track{
        grid-template-columns:repeat(2,1fr);
        row-gap:30px;
    }
}

@media(max-width:480px){
    .home-partners{
        padding:40px 0;
    }

    .home-partners-track{
        grid-template-columns:1fr;
        gap:24px;
    }

    .home-partners-nav{
        display:none;
    }
}

/* HOME GALLERY */
.home-gallery{
    background:#ffffff;
    padding:0;
}

.home-gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0;
}

/* IMMAGINI */
.home-gallery-item{
    position:relative;
    overflow:hidden;
}

.home-gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* RESPONSIVE */
@media(max-width:768px){
    .home-gallery-grid{
        grid-template-columns:1fr;
    }

    .home-gallery-item{
        height:260px;
    }
}
/* HOME CONTACT */
.home-contact{
    background:#000000;
    padding-top:20px;
    color:#ffffff;
}

.home-contact-container{
    max-width:900px;
    margin:0 auto;
    padding:0 20px;
    text-align:center;
}

/* HEADER */
.home-contact-header h2{
    color:#ffffff;
    font-size:36px;
    font-weight:700;
    margin-bottom:14px;
}

/* LINEA ROSSA */
.home-contact-divider{
    display:block;
    width:80px;
    height:3px;
    background:#C1022C;
    margin:0 auto 18px;
}

/* SOTTOTITOLO */
.home-contact-header p{
    color:#ffffff;
    font-size:14px;
    opacity:.85;
}


/* FORM BOX */
.home-contact-box{
    background:#ffffff;
    border-radius:16px 16px 0px 0px;
    padding:40px 36px;
    color:#161922;
}

/* FORM */
.home-contact-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.home-contact-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.home-contact-field{
    display:flex;
    flex-direction:column;
    text-align:left;
}

.home-contact-field.full{
    grid-column:1 / -1;
}

.home-contact-field label{
    font-size:12px;
    font-weight:600;
    margin-bottom:6px;
}

.home-contact-field input,
.home-contact-field textarea{
    border:1px solid #e3e6ea;
    border-radius:8px;
    padding:10px 12px;
    font-size:14px;
    font-family:inherit;
}

.home-contact-field textarea{
    resize:none;
}

/* PRIVACY */
.home-contact-privacy{
    font-size:11px;
    color:#555;
    text-align:left;
}

.home-contact-privacy a{
    color:#C1022C;
}

/* BUTTON */
.home-contact-btn{
    margin-top:10px;
    background:#C1022C;
    color:#ffffff;
    border:none;
    padding:12px;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

/* RESPONSIVE */
@media(max-width:768px){
    .home-contact{
        padding:80px 0;
    }

    .home-contact-header h2{
        font-size:28px;
    }

    .home-contact-row{
        grid-template-columns:1fr;
    }

    .home-contact-box{
        padding:30px 22px;
    }
}

/* FOOTER */
.site-footer {
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    padding: 20px;
}

.footer-top {
    padding: 20px 0 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /*gap: 40px;*/
}

/*.footer-col {
    width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
}*/

.footer-column.with-1-subcolumns{
    display: flex;
    width: 20%;
    justify-content: center;
}
.footer-column.with-1-subcolumns:first-child {
    width: 15%;
}
.footer-column.with-1-subcolumns:last-child {
    width: 35%;
}
.footer-column.with-2-subcolumns{
    display: flex;
    gap: 100px;
}
.footer-subcolumn-item-icon-email {
    overflow-wrap: anywhere !important;
}

.site-footer a {
    color: inherit;
}
.footer-col p{
    margin-top:0px;
    margin-right: 10px;
}

.footer-logo {
    width: 200px;
    margin-bottom: 0px;
}
.footer-social {
    display: flex;
    margin-top: 10px;
}

.footer-subcolumn-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0;
    padding:8px 0px;
}
.footer-subcolumn-item i {
    font-size: 16px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    color: #000000;
}

.footer-subcolumn-item a,
.footer-subcolumn-item p,
.footer-subcolumn-item span {
    margin: 0;
    line-height: 1.4;
    display: inline-block;
    color: #000000;
    font-size: 15px;
}
.footer-subcolumn-item p {
    /*margin-top: 20px;*/
}

.footer-social p {
    margin-top: 0;
    font-weight: 600;
    margin-right: 5px;
}
.footer-subcolumn-item a {    
    margin-bottom: 0;
    font-size: 15px;
    color: #000000;
    text-decoration: none;
}
.footer-subcolumn-name {
    color: #000000;
}

.footer-subcolumn-item a:not(.footer-subcolumn-item-icon-text,.footer-subcolumn-item-icon-address) {
    display: block;
    float: left;
}

.footer-subcolumn-item a.footer-subcolumn-item-icon-address{
    font-size: 15px;
}

.footer-subcolumn-item a:hover {
    opacity: 0.8;
}

[class^="footer-subcolumn-item-icon-"]{
    position: relative;
    /*padding-left: 24px;*/
}

[class^="footer-subcolumn-item-icon-"] i{
    position: absolute;
    left:0px;
    top:2px;
}

.footer-social a {
    color: #000000;
    padding-top: 4px;
    margin-right: 16px;
    transition: color 0.3s;
    display: inline !important;
    float: none !important;
}

.footer-social a i{
    font-size: 24px;
}

.footer-social a:hover {
    color: #000000;
}

.footer-social a.btn{
    padding: 6px 10px;
    font-size: 13px;
}

.footer-bottom {
    padding: 20px 20px;
}

.footer-bottom-boxed {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    color: #000000;
    font-size: 16px;
    border-top: 1px solid #ffffff;
}
.footer-bottom-content{
    max-width: 768px;
    margin: 0 auto;
}
.footer-bottom-boxed .footer-bottom-content div{
    float:left;
    margin-right:14px;
    font-size:15px;
    margin-top:8px;
    color: #000000;
}
.footer-bottom-boxed a {
    color: #000000;
    text-decoration: underline;
}

.iub__us-widget {
    display: none !important;
}

.footer-bottom-content div a{
    color: #C1022C;
    text-decoration: none;
}

@media (max-width: 992px) {
    .footer-social {
        display: block;
        padding-left: 0;
    }
    
    .footer-social a.btn{
        display: block !important;
    }
}

@media (min-width: 651px) and (max-width: 1200px) {
    .footer-column.with-1-subcolumns {
        width: 30%;
    }
    .site-footer {
        padding: 20px;
    }
}
@media (max-width: 650px) {
    .footer-logo{
        width: 80%;        
        margin:0 10%;
    }
    .footer-bottom-boxed .footer-bottom-content div:first-child{
        float:none;
    }
    .footer-container{
        justify-content: unset;
        gap: unset;
    }
    
    .footer-column.with-2-subcolumns, .footer-column.with-1-subcolumns{
        display: block;
        width: 100%;
    }
    
    .footer-column.with-2-subcolumns .footer-subcolumn, .footer-column.with-1-subcolumns .footer-subcolumn{
        width: 45%;
        margin:0px 2.5%;
        float: left;
        display: block;
    }
    
    .footer-column{
        margin-bottom: 10px;
    }
    
    .footer-column:not(.with-2-subcolumns), .footer-column:not(.with-1-subcolumns){
        width: 100% !important;
    }
    .footer-column:not(.with-2-subcolumns) .footer-subcolumn, .footer-column:not(.with-1-subcolumns) .footer-subcolumn{
        text-align: center;
    }
    .footer-column:not(.with-2-subcolumns) .footer-subcolumn .footer-subcolumn-item, .footer-column:not(.with-1-subcolumns) .footer-subcolumn .footer-subcolumn-item{
        justify-content: center;
    }
    .footer-column:not(.with-2-subcolumns) .footer-subcolumn {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .footer-social a{
        margin:0 8px;
    }    
    .footer-bottom-content div{
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-col-big img{
        width: 70%;
    }
    .footer-col.footer-col-big {
        width: 100%;
        text-align: center;
    }

    .footer-col ul,
    .footer-col-right p,
    .footer-col-right a,
    .footer-social {
        /*justify-content: center;*/
        /*text-align: center;*/
    }

    .footer-social {
        display: block;
        padding-left: 0;
    }
    
    footer-social p{
        margin-bottom:0px;
    }

    .footer-col-item {
        display: block;
    }
}

@media (max-width: 485px) {
    .footer-bottom{
        padding: 0px;
    }
    .footer-top{
        padding:0px;
    }
    .footer-col{
        margin-bottom:20px;
    }
    .footer-col *{
        font-size: 15px;
    }
    .footer-bottom-boxed .footer-bottom-content div{
        font-size:14px;
        margin-left:0px;
        margin-right:0px;
        padding:0 6px;
    }
}

/* INIZIO PAGINA ABOUT */
.about{
    padding-top:20px;
    color:#ffffff;
}

.about-container{
    max-width:900px;
    margin:0 auto;
    padding:0 20px;
    text-align:center;
    padding-bottom:20px;
}

.about-header h2{
    font-size:36px;
    font-weight:700;
    margin-bottom:14px;
    margin-top:10px;
}

/* LINEA ROSSA */
.about-divider{
    display:block;
    width:80px;
    height:3px;
    background:#C1022C;
    margin:0 auto 18px;
}

/* SOTTOTITOLO */
.about-header p{
    font-size:14px;
    opacity:.85;
}

/* HOME PROCESS */
.story{
    background:#F8F8F8;
    padding:40px 0;
}

.story-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
    display:flex;
    flex-direction:column;
    gap:100px; /* spazio tra le due righe */
}

/* ROW */
.story-row{
    display:flex;
    gap:60px;
    align-items:center;
}

.story-text,
.story-image{
    flex:0 0 50%;
    max-width:50%;
}

/* ROW ALTERNATA */
.story-row.reverse .story-text{
    order:2;
}
.story-row.reverse .story-image{
    order:1;
}

/* TESTO */
.story-title{
    display:flex;
    align-items:stretch;
    gap:18px;
    margin-bottom:24px;
}

.story-line{
    width:3px;
    background:#b3002d;
}

.story-text h2{
    font-size:42px;
    font-weight:700;
    line-height:1.1;
}

.story-text h3{
    font-size:28px;
    font-weight:700;
    margin-bottom:14px;
}

.story-text p{
    font-size:14px;
    line-height:1.7;
    color:#444;
    margin-bottom:16px;
}

/* IMMAGINI */
.story-image img{
    width:100%;
    height:auto;
    border-radius:8px;
    display:block;
}

/* RESPONSIVE */
@media (max-width: 992px){
    .story-container{
        gap: 40px;
    }
    .story-row{
        flex-direction:column;
        align-items:flex-start;
        gap:40px;
    }

    .story-text,
    .story-image{
        flex:0 0 100%;
        max-width:100%;
        margin: 0 auto;
    }

    /* annulliamo qualsiasi reverse */
    .story-row.reverse .story-text,
    .story-row.reverse .story-image{
        order:unset;
    }
}

/* CERTIFICAZIONI & ABILITAZIONI */
.company-certifications{
    background:#ffffff;
    padding:40px 0;
}

.company-certifications-container{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
    display:flex;
    flex-direction:column;
    gap:90px;
}

/* BLOCK */
.company-certifications-block{
    max-width:900px;
}

/* TITOLI */
.company-certifications-title{
    font-size:22px;
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-bottom:10px;
}

.company-certifications-line{
    display:block;
    width:60px;
    height:3px;
    background:#b3002d;
    margin-bottom:30px;
}

/* LISTE */
.company-certifications-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.company-certifications-list li{
    font-size:14px;
    line-height:1.7;
    color:#333;
    position:relative;
    padding-left:18px;
}

.company-certifications-list li::before{
    content:"•";
    position:absolute;
    left:0;
    color:#b3002d;
    font-weight:700;
}

/* EVIDENZIA ABILITAZIONI */
.company-certifications-list.highlight li{
    color:#b3002d;
    font-weight:500;
}

/* LINK */
.company-certifications-list a{
    color:#b3002d;
    font-weight:600;
    text-decoration:none;
}

/* RESPONSIVE */
@media(max-width:768px){
    .company-certifications{
        /*padding:90px 0;*/
    }

    .company-certifications-container{
        gap:70px;
    }

    .company-certifications-title{
        font-size:20px;
    }
}

@media(max-width:480px){
    .company-certifications{
        padding:70px 0;
    }

    .company-certifications-list li{
        font-size:13px;
    }
}

.divider-black{
    width: 100%;
    height: 40px;
    background-color: #000000;
}

/* PROCESS SECTION */
.process-section{
    background:#f6f6f6; /* colore di sfondo come mockup */
    padding:60px 0;
}

.process-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.process-row{
    display:flex;
    align-items:center;
    gap:70px;
}

/* TESTO */
.process-text{
    flex:0 0 50%;
    max-width:50%;
}

.process-title{
    display:flex;
    align-items:flex-start;
    gap:18px;
    margin-bottom:28px;
}

.process-line{
    width:3px;
    height:48px;
    background:#C1022C;
}

.process-text h2{
    font-size:42px;
    font-weight:600;
    line-height:1.15;
}

.process-text p{
    font-size:14px;
    line-height:1.7;
    color:#444;
    margin-bottom:18px;
}

/* IMMAGINE */
.process-image{
    flex:0 0 50%;
    max-width:50%;
}

.process-image img{
    width:100%;
    height:auto;
    display:block;
    border-radius:6px;
}

/* RESPONSIVE */
@media (max-width: 992px){
    .process-row{
        flex-direction:column;
        gap:40px;
    }

    .process-text,
    .process-image{
        max-width:100%;
        flex:0 0 100%;
    }

    .process-text h2{
        font-size:34px;
    }
}

@media (max-width: 576px){
    .process-section{
        padding:90px 0;
    }

    .process-text h2{
        font-size:30px;
    }
}

/* COUNTRIES SECTION */
.home-countries{
    position:relative;
    background-image:url('/frontend/images/demining-team.png');
    background-size:cover;
    background-position:top;
    padding:60px 0;
}

/* OVERLAY BIANCO */
.home-countries-overlay{
    position:absolute;
    inset:0;
    background:rgba(255,255,255,0.85);
}

/* CONTAINER */
.home-countries-container{
    position:relative;
    z-index:2;
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
    display:flex;
    justify-content:center;
}

/* CARD CENTRALE */
.home-countries-card{
    background:#ffffff;
    border-radius:24px;
    padding:30px 40px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
}

/* TITOLO */
.home-countries-card h2{
    font-size:32px;
    font-weight:600;
    margin-bottom:20px;
}

/* LISTA */
.home-countries-list{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

/* PILL */
.country-pill{
    display:flex;
    align-items:center;
    justify-content:center;
    width:180px;              /* ← lunghezza uniforme */
    height:44px;              /* ← altezza uniforme */
    border:2px solid #b3002d;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    color:#b3002d;
    background:#ffffff;
    white-space:nowrap;
    box-sizing:border-box;
}

/* RESPONSIVE */
@media(max-width:992px){
    .home-countries{
        padding:90px 0;
    }

    .home-countries-card{
        padding:50px 40px;
    }

    .home-countries-card h2{
        font-size:26px;
    }
    
    .country-pill{
        width:160px;
        height:42px;
        font-size:12px;
    }
}

@media(max-width:576px){
    .home-countries-card{
        padding:40px 26px;
    }

    .home-countries-card h2{
        font-size:22px;
    }

    .country-pill{
        width:100%;
        max-width:260px;   /* tutti uguali anche in colonna */
    }
}

/* PAGE BASE */
.service-page{
    background:#ffffff;
    padding:40px 0;
}

.service-page p{
    font-size:14px;
    line-height:1.7;
    color:#444;
    margin-bottom:18px;
}

/* INTRO */
.service-intro{
    max-width:900px;
    margin:0 auto 90px;
    padding:0 20px;
}

.service-intro h1{
    font-size:38px;
    font-weight:700;
    margin-bottom:24px;
}

/* SEZIONI */
.service-section{
    max-width:1200px;
    margin:0 auto 100px;
    padding:0 20px;
}

.service-section h2{
    font-size:28px;
    font-weight:700;
    margin-bottom:8px;
}

/* GALLERY */
.service-gallery{
    display:grid;
    gap:16px;
    margin:30px 0;
}

.service-gallery img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:6px;
    display:block;
}

/* GRID VARIANTS */
.service-gallery.grid-5{
    grid-template-columns:repeat(5,1fr);
}

.service-gallery.grid-6{
    grid-template-columns:repeat(6,1fr);
}

/* RESPONSIVE */
@media(max-width:1200px){
    .service-gallery.grid-5{
        grid-template-columns:repeat(3,1fr);
    }
    .service-gallery.grid-6{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:768px){
    .service-intro h1{
        font-size:30px;
    }

    .service-section h2{
        font-size:24px;
    }

    .service-gallery.grid-5,
    .service-gallery.grid-6{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .service-gallery{
        grid-template-columns:1fr;
    }

    .service-gallery img{
        height:200px;
    }
}

/* MODAL BASE */
.image-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}

/* OVERLAY */
.image-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.85);
}

/* CONTENT */
.image-modal-content{
    position:relative;
    z-index:2;
    width:90%;
    height:90%;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:center;
}

.image-modal-content img{
    max-width:100%;
    max-height:100%;
    border-radius:6px;
    box-shadow:0 20px 60px rgba(0,0,0,0.6);
}

/* CLOSE */
.image-modal-close{
    position:absolute;
    top:10px;
    right:0;
    font-size:50px;
    color:#ffffff;
    cursor:pointer;
}

/* PAGINA INDAGINI */
.indagini-page{
    background:#ffffff;
    padding:40px 0;
}

.indagini-section{
    max-width:900px;
    margin:0 auto 90px;
    padding:0 20px;
}

/* TITOLI */
.indagini-title{
    font-size:32px;
    font-weight:700;
    margin-bottom:24px;
}

/* SOTTOTITOLI */
.indagini-section h3{
    font-size:18px;
    font-weight:700;
    margin:28px 0 14px;
}

/* TESTI */
.indagini-section p{
    font-size:14px;
    line-height:1.75;
    color:#444;
    margin-bottom:16px;
}

/* LISTE */
.indagini-list{
    list-style:none;
    padding:0;
    margin:20px 0 0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.indagini-list li{
    position:relative;
    padding-left:18px;
    font-size:14px;
    line-height:1.6;
}

.indagini-list li::before{
    content:"•";
    position:absolute;
    left:0;
    color:#b3002d;
    font-weight:700;
}

/* LISTA EVIDENZIATA */
.indagini-list.highlight li strong{
    color:#b3002d;
}

/* RESPONSIVE */
@media(max-width:768px){
    .indagini-page{
        padding:80px 0;
    }

    .indagini-title{
        font-size:26px;
    }
}

@media(max-width:480px){
    .indagini-title{
        font-size:22px;
    }
}
