﻿/* ============================
   HERO HOME
============================ */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.4rem; /* RIDOTTO */
    font-weight: 800;
    color: #fff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem; /* RIDOTTO */
    color: #fff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

    .hero-buttons .btn {
        padding: 14px 22px;
        border-radius: 8px;
        font-weight: bold;
        background: #0B7A3E;
        color: white;
        transition: 0.3s;
    }

        .hero-buttons .btn:hover {
            background: #095f30;
        }

/* Freccia scroll */
.scroll-arrow-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -110px;
}

.scroll-arrow {
    animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0.3;
    }
}

/* ============================
   MINI CHI SIAMO
============================ */
.home-chisiamo {
    text-align: center;
    max-width: 900px;
    margin: 60px auto 0;
}

    .home-chisiamo h2 {
        color: #0B7A3E; /* VERDE */
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .home-chisiamo p {
        font-size: 1.2rem;
        margin-bottom: 25px;
        color: white;
        font-weight: 500;
    }

/* ============================
   STRUTTURA LOGISTICA
============================ */
.home-logistica {
    text-align: center;
    margin-top: 40px;
}

    .home-logistica h2 {
        color: #0B7A3E; /* VERDE */
    }

.logistica-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin: 40px 0;
}

.logistica-item {
    background: #ffffffdd;
    padding: 35px 20px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    transition: 0.3s;
    text-align: center; /* CENTRATO */
}

    .logistica-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    .logistica-item h3 {
        color: #0B7A3E; /* VERDE */
        font-size: 2rem;
        margin-bottom: 10px;
        font-weight: 800;
    }

    .logistica-item p {
        font-size: 1.1rem;
        color: #062A18;
        font-weight: 500;
    }

/* ============================
   SERVIZI
============================ */
.services h2 {
    text-align: center;
    color: #0B7A3E; /* VERDE */
    margin-bottom: 40px;
}

.services .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* QUADRATINI AFFIANCATI */
    gap: 25px;
}

.services .card {
    background: #ffffffdd;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

    .services .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    }

    .services .card h3 {
        color: #0B7A3E; /* VERDE */
        margin-bottom: 10px;
    }

/* ============================
   CERTIFICAZIONI MINI — FIX CENTRATURA
============================ */
.home-certificazioni {
    max-width: 900px;
    margin: 80px auto;
    text-align: center;
    background: #ffffffcc;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
}

    .home-certificazioni h2 {
        color: #0B7A3E;
        margin-bottom: 30px;
    }

.cert-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* CARD PERFETTAMENTE CENTRATA */
.cert-mini {
    background: #ffffffdd;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    transition: 0.3s;
    /* CENTRATURA PERFETTA */
    display: flex;
    flex-direction: column;
    justify-content: center; /* CENTRA VERTICALMENTE */
    align-items: center; /* CENTRA ORIZZONTALMENTE */
    text-align: center;
    min-height: 180px; /* ALTEZZA UNIFORME */
}

    .cert-mini:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    }

.cert-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.cert-mini span {
    font-weight: 700;
    color: #0B7A3E;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cert-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cert-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* FIX SPAZIO BOTTONE "Tutte le certificazioni" */
.home-certificazioni .btn {
    margin-top: 40px !important; /* aumenta se vuoi più spazio */
    display: inline-block;
}


/* ============================
   MAGAZZINO MINI
============================ */
.magazzino-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.magazzino-card {
    padding: 40px 20px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #628e3d, #547735, #b6ce8a);
    background-size: 300% 300%;
    animation: magazzinoCardGradient 12s ease infinite;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: 0.3s;
    text-align: center; /* CENTRATO */
}

@keyframes magazzinoCardGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.magazzino-card .counter {
    font-size: 3rem; /* RIDOTTO */
    font-weight: 900;
    margin-bottom: 10px;
}

.magazzino-card p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================
   DOCUMENTI 231
============================ */
.documenti-231 {
    margin: 80px auto;
    max-width: 900px;
    text-align: center;
    background: #ffffffcc;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
}

.doc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0B7A3E; /* VERDE */
    margin-bottom: 30px;
}

.doc-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: #ffffff;
    border: 2px solid #0B7A3E;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #0B7A3E;
    text-decoration: none;
    transition: 0.3s;
}

    .doc-item:hover {
        background: #0B7A3E;
        color: white;
        transform: translateY(-3px);
    }

/* ============================
   CONTATTI MINI
============================ */
.home-contacts {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.contact-card-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 40px 60px;
    text-align: center;
    color: white;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

    .contact-card-glass h2 {
        margin-bottom: 20px;
        font-size: 2rem;
        font-weight: 700;
    }

    .contact-card-glass strong {
        color: #2ecc71;
    }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
    .logistica-grid,
    .services .cards,
    .cert-mini-grid,
    .magazzino-cards {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}
/* FIX HERO MOBILE — evita che il testo finisca sotto l'header */
@media (max-width: 768px) {
    .hero {
        padding-top: 160px !important; /* aumenta se serve */
        height: auto;
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }
}
/* ============================
   HERO — VERSIONE CORRETTA
============================ */

/* Spazio per evitare sovrapposizione con header fisso */
@media (max-width: 768px) {
    .hero {
        padding-top: 200px !important; /* calibrato per il tuo header */
        min-height: 85vh !important;
        height: auto !important;
    }
}

/* Testi centrati e proporzionati */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

    .hero-content h1 {
        font-size: 2.2rem; /* come nello screenshot */
        font-weight: 800;
        margin-bottom: 10px;
        color: #fff;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
        color: #fff;
    }

/* Bottoni centrati e distanziati */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 4;
}

    .hero-buttons .btn {
        background: #0B7A3E;
        padding: 12px 22px;
        border-radius: 8px;
        font-weight: 600;
    }

        .hero-buttons .btn:hover {
            background: #095f30;
        }

/* Freccia sempre davanti ai bottoni */
.scroll-arrow-wrapper {
    margin-top: 40px !important; /* NON negativo */
    position: relative;
    z-index: 5 !important;
}

.scroll-arrow {
    animation: arrowBounce 1.6s ease-in-out infinite;
}

/* GRID CERTIFICAZIONI — VERSIONE CORRETTA */
.cert-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Tablet */
@media (max-width: 992px) {
    .cert-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — SEMPRE 2 PER RIGA */
@media (max-width: 600px) {
    .cert-mini-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.home-contacts h2 {
    color: #0B7A3E !important;
}
/* Label nera */
.home-contacts p {
    color: #000 !important;
}

/* Valore verde */
.home-contacts p strong {
    color: #0B7A3E !important;
}

.home-chisiamo {
    position: relative;
    padding: 60px 30px;
}

    .home-chisiamo::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom right, rgba(255,255,255,0.85), rgba(255,255,255,0.55) );
        border-radius: 22px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        z-index: -1;
    }

    .home-chisiamo p {
        color: #000 !important;
    }
