*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter', sans-serif;
}
html{
    scroll-behavior:smooth;
}
body{
    background:#F6F8FB;
    color:#0F172A;
    line-height:1.6;
}
.chi-siamo-split {
    display: flex;
    align-items: stretch;
    gap: 0;                    /* niente spazio tra testo e foto */
    flex-wrap: wrap;
    padding: 0 !important;     /* annulla il padding della .section solo qui */
    overflow: hidden;
}

.chi-siamo-text {
    flex: 1 1 400px;
    padding: 60px 40px;        /* rimetti spazio SOLO attorno al testo */
}

.chi-siamo-img {
    flex: 1 1 400px;
    display: flex;
    align-self: stretch;       /* si estende per tutta l'altezza */
}

.chi-siamo-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;         /* riempie tutto lo spazio */
    min-height: 100%;
}

@media (max-width: 768px) {
    .chi-siamo-split {
        flex-direction: column;
    }
    .chi-siamo-text {
        padding-bottom: 25px;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(0,0,0,0.15);
    }
    .chi-siamo-img img {
        height: auto;
        object-fit: contain;   /* mostra l'immagine intera, niente ritaglio laterale */
        min-height: 0;         /* annulla il min-height ereditato da PC */
    }
}

/* HEADER */
header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 60px;
    background:#FFFFFF;
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:1px solid #E5E7EB;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    color: #111;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
img {
    max-width: 100%;
    height: auto;
}

nav a{
    color:#475569;
    margin:0 14px;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:0.2s;
}

nav a:hover{
    color:#c4133b;
}

/* HERO */
.hero{
    height:100vh;
    background: url('images/1.jpg') center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

/* HERO MOBILE — immagine intera, niente spazi e niente taglio (foto 4:3) */
@media (max-width:768px){
    .hero{
        height: auto;              /* la sezione si adatta all'immagine */
        aspect-ratio: 4 / 3;       /* stessa proporzione di 1.jpg (1600x1200) */
        background-size: cover;     /* riempie tutto senza tagliare (ratio identico) */
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* overlay elegante tipo Volvo/Scania */
.hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.75)
    );
}

/* contenuto sopra immagine */
.hero-overlay{
    position:relative;
    z-index:2;
    text-align:center;
    max-width:900px;
    padding:20px;
    color:white;
}

.hero h1{
    font-size:3.5rem;
    font-weight:700;
    letter-spacing:-1px;
}

.hero p{
    margin-top:12px;
    font-size:1.2rem;
    color:#E5E7EB;
}

/* bottoni */
.hero-buttons{
    margin-top:25px;
}

/* BOTTONI */
.btn{
    display:inline-block;
    margin-top:25px;
    padding:14px 28px;
    background:#c4133b;
    color:white;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:0.25s;
}

.btn:hover{
    background:#a80f30;
    transform:translateY(-2px);
}

.btn.secondary{
    background:transparent;
    border:1px solid #c4133b;
    color:#c4133b;
}

.btn.secondary:hover{
    background:#c4133b;
    color:white;
}

/* IMMAGINE HERO */
.hero-image{
    margin-top:35px;
}

.hero-image img{
    width:85%;
    max-width:720px;
    border-radius:12px;
    border:1px solid #E5E7EB;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

/* SEZIONI */
.section{
    padding:100px 20px;
    text-align:center;
    background:#F6F8FB;
}

.section h2{
    font-size:2.2rem;
    font-weight:700;
    color:#0F172A;
}

.section p{
    color:#475569;
    max-width:800px;
    margin:auto;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:22px;
    margin-top:50px;
}

/* CARD LIGHT STYLE */
.card{
    background:#FFFFFF;
    border:1px solid #E5E7EB;
    padding:28px;
    border-radius:12px;
    text-align:left;
    transition:0.25s;
    box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

.card:hover{
    transform:translateY(-6px);
    border-color:#c4133b;
}

/* GALLERY */
.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:18px;
    margin-top:45px;
}

.gallery img{
    width:100%;
    border-radius:12px;
    transition:0.3s;
    border:1px solid #E5E7EB;
}

.gallery img:hover{
    transform:scale(1.02);
}

/* MAP */
iframe{
    width:92%;
    height:420px;
    border:none;
    border-radius:12px;
    border:1px solid #E5E7EB;
    margin-top: 30px;
}

/* FORM */
.contact-form{
    display:flex;
    flex-direction:column;
    max-width:540px;
    margin:auto;
    margin-top:30px;
}

.contact-form input,
.contact-form textarea{
    margin:10px 0;
    padding:14px;
    border-radius:8px;
    border:1px solid #E5E7EB;
    background:#FFFFFF;
    color:#0F172A;
}

.contact-form button{
    background:#c4133b;
    border:none;
    padding:14px;
    border-radius:8px;
    font-weight:600;
    color:white;
    cursor:pointer;
}

.contact-form button:hover{
    background:#a80f30;
}

/* WHATSAPP */
.whatsapp-float{
    position:fixed;
    bottom:22px;
    right:22px;
    background:#c4133b;
    color:white;
    padding:14px;
    border-radius:50%;
    font-size:18px;
    text-decoration:none;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}
.gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.gallery::-webkit-scrollbar {
    height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.gallery img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery img {
        width: 260px;
        height: 180px;
    }
}
/* FOOTER */
footer{
    padding:40px;
    text-align:center;
    color:#64748B;
    font-size:13px;
    border-top:1px solid #E5E7EB;
    background:#FFFFFF;
}

/* SERVICE CARDS */
.service-icon{
    font-size:2rem;
    margin-bottom:12px;
}

.card h3{
    font-size:1rem;
    font-weight:700;
    margin-bottom:8px;
    color:#0F172A;
}

.card p{
    font-size:0.9rem;
    color:#475569;
    line-height:1.6;
    max-width:none;
    margin:0;
}

/* REVEAL ANIMATION */
.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* DARK SECTIONS */
.section.dark{
    background:#0F172A;
}
.section.dark h2{
    color:#F5F7FA;
}
.section.dark > p{
    color:#94A3B8;
}
.section.dark .card{
    background:rgba(255,255,255,0.04);
    border-color:rgba(255,255,255,0.08);
    color:#F5F7FA;
    box-shadow:none;
}
.section.dark .card h3{
    color:#F5F7FA;
}
.section.dark .contact-form input,
.section.dark .contact-form textarea{
    background:rgba(255,255,255,0.05);
    border-color:rgba(255,255,255,0.1);
    color:#F5F7FA;
}
.section.dark .contact-form input::placeholder,
.section.dark .contact-form textarea::placeholder{
    color:#64748B;
}
.section.dark .contact-info p{
    color:#94A3B8;
    margin-top:12px;
}

/* TRASPORTI — CLEAN CARDS */
.transport-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:22px;
    margin:50px auto 0;
    max-width:1200px;
}

.transport-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:14px;
    overflow:hidden;
    display:block;
    text-decoration:none;
    transition:transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.transport-card:hover{
    transform:translateY(-8px);
    border-color:#c4133b;
    box-shadow:0 24px 60px rgba(0,0,0,0.45);
}

.transport-card-img{
    height:210px;
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    background-color:#111827;
    transition:transform 0.5s ease;
}

.transport-card:hover .transport-card-img{
    transform:scale(1.04);
}

.transport-card-body{
    padding:22px 24px 26px;
    border-top:2px solid transparent;
    transition:border-color 0.3s;
}

.transport-card:hover .transport-card-body{
    border-top-color:#c4133b;
}

.transport-card-body h3{
    font-size:1.05rem;
    font-weight:700;
    color:#F5F7FA;
    margin-bottom:8px;
    line-height:1.3;
}

.transport-card-body p{
    font-size:0.875rem;
    color:#94A3B8;
    margin-bottom:18px;
    line-height:1.55;
    max-width:none;
}

.transport-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:0.85rem;
    font-weight:600;
    color:#c4133b;
    transition:gap 0.25s;
}

.transport-card:hover .transport-link{
    gap:12px;
}

/* SPONSOR */
.section#sponsor{
    background:#FFFFFF;
}

.sponsor-grid{
    display:flex;
    justify-content:center;
    gap:50px;
    flex-wrap:wrap;
    margin-top:50px;
    align-items:center;
}

.sponsor-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    background:#F6F8FB;
    border:1px solid #E5E7EB;
    border-radius:14px;
    padding:32px 48px;
    min-width:200px;
}

.sponsor-card img{
    max-width:190px;
    max-height:110px;
    object-fit:contain;
    margin-bottom:16px;
}

/* SEDI */
#sedi .card{
    cursor:pointer;
}

#sedi .card.active{
    border-color:#c4133b;
    background:rgba(196,19,59,0.1);
}

.sponsor-name{
    font-size:1.05rem;
    font-weight:700;
    color:#0F172A;
    text-align:center;
    letter-spacing:0.3px;
}

/* PAGE HERO (transport detail pages) */
.page-hero{
    height:100vh;
    min-height:380px;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}

.page-hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.72) 100%);
}

.page-hero-overlay{
    position:relative;
    z-index:2;
    text-align:center;
    color:white;
    padding:20px;
    max-width:800px;
}

.page-badge{
    display:inline-block;
    font-size:0.75rem;
    font-weight:700;
    letter-spacing:4px;
    color:#c4133b;
    text-transform:uppercase;
    border:1px solid #c4133b;
    padding:5px 18px;
    border-radius:20px;
    margin-bottom:18px;
    background:rgba(0,0,0,0.3);
}

.page-hero-overlay h1{
    font-size:2.8rem;
    font-weight:700;
    letter-spacing:-1px;
    margin-bottom:12px;
    color:white;
}

.page-hero-overlay p{
    font-size:1.1rem;
    color:rgba(255,255,255,0.82);
    max-width:600px;
    margin:0 auto;
}

/* PDF SECTION */
.pdf-grid{
    display:flex;
    flex-direction:column;
    max-width:720px;
    margin:40px auto 0;
    gap:14px;
}

.pdf-item{
    display:flex;
    align-items:center;
    gap:18px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    padding:18px 22px;
    border-radius:10px;
    text-align:left;
    transition:0.25s;
}

.pdf-item:hover{
    border-color:#c4133b;
    background:rgba(255,255,255,0.08);
}

.pdf-icon{
    font-size:1.6rem;
    flex-shrink:0;
}

.pdf-name{
    flex:1;
    font-size:0.95rem;
    color:#F5F7FA;
    font-weight:500;
}

.pdf-size{
    font-size:0.8rem;
    color:#64748B;
    flex-shrink:0;
    margin-right:12px;
}

.pdf-empty{
    text-align:center;
    padding:50px 20px;
    color:#64748B;
    font-size:0.95rem;
    border:2px dashed rgba(255,255,255,0.12);
    border-radius:10px;
    margin:40px auto 0;
    max-width:720px;
}

.btn-download{
    display:inline-block;
    padding:8px 18px;
    background:#c4133b;
    color:white;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    font-size:0.85rem;
    flex-shrink:0;
    transition:0.2s;
}

.btn-download:hover{
    background:#a80f30;
}

/* BACK LINK */
.back-section{
    padding:60px 20px;
    text-align:center;
    background:#F6F8FB;
}

.btn-back{
    display:inline-block;
    padding:12px 28px;
    border:1.5px solid #c4133b;
    color:#c4133b;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    font-size:0.95rem;
    transition:0.25s;
}

.btn-back:hover{
    background:#c4133b;
    color:white;
}

/* HAMBURGER */
.hamburger{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    background:none;
    border:none;
    cursor:pointer;
    padding:6px;
    z-index:1100;
}

.hamburger span{
    display:block;
    width:26px;
    height:2px;
    background:#0F172A;
    border-radius:2px;
    transition:transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1){ transform:rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:rotate(-45deg) translate(5px,-5px); }

/* TABLET */
@media (max-width:900px){
    .logo-text{ font-size:1rem; }
    header{ padding:14px 20px; }
}

/* MOBILE */
@media (max-width:768px){

    /* Hamburger */
    .hamburger{ display:flex; }

    /* Nav fullscreen overlay */
    nav{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(255,255,255,0.98);
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:32px;
        z-index:1000;
    }
    nav.open{ display:flex; }
    nav a{
        margin:0;
        font-size:1.3rem;
        color:#0F172A;
    }

    /* Sections */
    .section{ padding:64px 16px; }
    .section h2{ font-size:1.7rem; }

    /* Hero */
    .hero h1{ font-size:2.2rem; letter-spacing:-0.5px; }
    .hero p{ font-size:1rem; }

    /* Page hero (detail pages) */
    .page-hero{ height:45vh; min-height:280px; }
    .page-hero-overlay h1{ font-size:1.8rem; letter-spacing:-0.5px; }
    .page-hero-overlay p{ font-size:0.95rem; }

    /* Grid 1 colonna */
    .transport-grid{ grid-template-columns:1fr; }
    .grid{ grid-template-columns:1fr; }

    /* Sponsor */
    .sponsor-grid{ flex-direction:column; align-items:center; gap:24px; }
    .sponsor-card{ padding:24px 32px; min-width:0; width:80%; }

    /* Map */
    iframe{ width:100%; height:280px; }

    /* Back button */
    .back-section{ padding:40px 16px; }

    /* PDF items */
    .pdf-item{ flex-wrap:wrap; gap:12px; }
    .pdf-size{ display:none; }
}
