/* Rimuove i margini predefiniti del browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* Safari preferisce lo snap sul body o sull'elemento contenitore */
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

section {
    scroll-snap-align: start;
    /* Forza Safari a calcolare bene l'altezza */
    -webkit-scroll-snap-align: start;
}

html {
    scroll-behavior: smooth; /* Questo lo avevamo già messo, serve per i click sui link */
    scroll-snap-type: y mandatory; /* "y" indica lo scorrimento verticale, "mandatory" forza l'aggancio */
}

.hero, #servizi, #contatti {
    scroll-snap-align: start; /* Allinea l'inizio della sezione con l'inizio dello schermo */
    scroll-snap-stop: always;  /* Impedisce di saltare troppe sezioni con una sola scrollata veloce */
}

#servizi, #contatti {
    min-height: 100vh; /* Forza le sezioni a essere alte almeno quanto lo schermo */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra il contenuto verticalmente per un effetto premium */
}

/* Assicurati che la sezione hero sia impostata così */
.hero {
    width: 100%;
    height: 100vh; /* 100% dell'altezza della finestra del browser */
    display: flex;
    align-items: center;
    justify-content: flex-start;

    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 70%), url('img/fondo.jpg');
    background-size: cover;      /* Fa sì che l'immagine copra tutto lo spazio disponibile */
    background-position: center; /* Mantiene il furgone centrato */
    background-repeat: no-repeat;
    padding-left: 10%;
}

.hero-content {
    max-width: 45%; /* Occupa poco meno della metà della pagina */
    text-align: left; /* Allinea il testo a sinistra */
    color:white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Stile del pulsante arancione */
.btn-scopri {
    display: inline-block;
    padding: 18px 40px;
    background-color: #f39c12; /* Arancione ERRELogistic */
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ombra per profondità */
}

/* Effetto quando ci passi sopra col mouse */
.btn-scopri:hover {
    background-color: #e67e22; /* Arancione leggermente più scuro */
    transform: translateY(-3px); /* Si alza leggermente */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Effetto quando lo clicchi */
.btn-scopri:active {
    transform: translateY(-1px);
}

.container {
    padding: 80px 10%;
    background: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.grid-servizi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #f39c12; /* L'arancione del tuo brand */
}

/* Sezione Contatti */
.contact-section {
    padding: 60px 10%;
    background: #333;
    color: white;
    text-align: center;
}

/* Stile per l'indirizzo in alto */
.company-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stile base per tutti i bottoni contatti (per uniformità) */
.contact-buttons a {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: transform 0.2s, background 0.2s;
}

.contact-buttons a:hover {
    transform: scale(1.05);
}

/* Colore specifico per il tasto Email */
.btn-email {
    background-color: #489dff; /* Un blu notte elegante */
}

.btn-contact { background-color: #f39c12; }
.btn-whatsapp { background-color: #25D366; }

.btn-contact { background: #f39c12; }
.btn-whatsapp { background: #25D366; }

.footerslogan{color:orange;}

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95); /* Blu scuro semitrasparente */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    font-size: 14px;
    border-top: 2px solid #f39c12; /* Linea arancione ERRELogistic */
}

.cookie-bar button {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.cookie-bar button:hover {
    background: #e67e22;
}

.cookie-bar a {
    color: #f39c12;
    text-decoration: underline;
}

/* Nascondi il banner quando viene accettato */
.hidden {
    display: none !important;
}

.site-footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    padding: 60px 10% 20px;
    font-size: 0.85rem;
    border-top: 3px solid #f39c12;
    scroll-snap-align: end;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #f39c12;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-name {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f39c12;
}

.iban-bar {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-family: monospace;
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.copyright {
    margin-top: 20px !important;
    font-size: 0.75rem;
    opacity: 0.6;
}

a{color:lightgray;}
a:visited{color:lightgray;}
