/* --- VARIABILI E RESET --- */
:root { 
    --dfr-green: #76b72a; 
    --dfr-dark: #021C38;
}

body { font-family: 'Open Sans Hebrew', sans-serif; margin: 0; padding: 0; overflow-x: hidden; background-color: #fff; }

/* --- TOP BAR & NAVBAR --- */
.top-bar { background-color: var(--dfr-green); color: white; padding: 8px 0; font-size: 13px; }
.top-bar a { color: white; text-decoration: none; transition: all 0.3s ease; }

.navbar { background-color: white !important; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 10px 0; }
.navbar > .container { padding-left: 20px; padding-right: 20px; }
.navbar-brand img { width: 120px; height: auto; }

.navbar-toggler { border: none !important; outline: none !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2376b72a' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Ottimizzazione Top Bar per Mobile */
@media (max-width: 767px) {
    .top-bar {
        font-size: 11px; /* Font leggermente più piccolo per far stare tutto su una riga o due */
        padding: 10px 0;
    }
    .top-bar .col-md-8 {
        line-height: 1.4;
    }
}

/* --- EFFETTI HOVER MENU --- */
.nav-link { color: var(--dfr-green) !important; font-weight: 700; text-transform: uppercase; font-size: 14px; margin: 0 15px; position: relative; transition: 0.3s; }
.nav-link::after { content: ""; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%; background-color: #000; transition: 0.3s; transform: translateX(-50%); }
.nav-link:hover { color: #000 !important; text-decoration: none; }
.nav-link:hover::after { width: 80%; }

.btn-contattaci { background-color: var(--dfr-green); color: white !important; font-weight: 700; text-transform: uppercase; border: 2px solid var(--dfr-green); padding: 8px 25px; border-radius: 5px; transition: 0.3s; font-size: 14px; display: inline-block; }
.btn-contattaci:hover { background-color: #000; border-color: #000; color: var(--dfr-green) !important; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- HERO & SEARCH BOX (HOME) --- */
.hero-container { position: relative; width: 100%; overflow: hidden; }
.carousel-item { height: 550px; position: relative; }
.carousel-item img { height: 100%; width: 100%; object-fit: cover; }
.carousel-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); z-index: 1; }
.hero-text { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; color: white; z-index: 10; }
.hero-text h1 { font-weight: 700; font-size: 3rem; text-shadow: 2px 2px 15px rgba(0,0,0,0.6); }

/* Box Verde Ricerca */
.search-box { 
    background-color: var(--dfr-green); 
    padding: 25px 30px 15px 30px; 
    border-radius: 15px; 
    margin-top: -100px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    position: relative; 
    z-index: 20; 
}

.search-box label { color: #000; font-weight: 800; text-transform: uppercase; font-size: 11px; margin-bottom: 5px; display: block; }

/* Caselle Bianche - TOTALMENTE SQUADRATE E ANIMATE */
.input-item-custom { 
    background: white; 
    height: 42px; 
    display: flex; 
    align-items: center; 
    padding: 0 10px; 
    border-radius: 5px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

/* Animazione Focus: Sollevamento e Ombra */
.input-item-custom:focus-within {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.input-item-custom input, 
.input-item-custom select { 
    border: none !important; 
    outline: none !important; 
    width: 100%; 
    font-size: 13px; 
    color: #333;
    background: transparent;
    height: 100%;
    border-radius: 0 !important;
}

.input-item-custom i { color: var(--dfr-green); margin-right: 8px; font-size: 14px; }

/* Bottone Mostra Offerte - SQUADRATO */
.btn-mostra-new { 
    background-color: #343a40; 
    color: var(--dfr-green) !important; 
    height: 42px; 
    width: 100%; 
    font-weight: 800; 
    text-transform: uppercase; 
    border: none; 
    transition: 0.3s; 
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-mostra-new:hover { background-color: #333; transform: scale(1.02); }

.location-text { color: #000; font-weight: 800; font-size: 12px; margin-top: 10px; text-transform: uppercase; }

/* --- SEZIONE FLOTTA HOME (TESTO IN OVERLAY) --- */
.flotta-card-new {
    position: relative;
    overflow: hidden;
    border-radius:15px;
    height: 450px;
    background-color: #000;
}

.flotta-card-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flotta-overlay-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.flotta-content-new { color: #ffffff; }

.flotta-content-new h3 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1;
    margin-bottom: 15px;
}

.flotta-content-new p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 400;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.btn-vedi-new {
    background-color: #000;
    color: var(--dfr-green);
    border: none;
    padding: 10px 45px;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    cursor: pointer;
}

.flotta-card-new:hover img { transform: scale(1.1); }
.flotta-card-new:hover .btn-vedi-new { background-color: var(--dfr-green); color: #000; }

/* --- CARD VALORI & CONTATTI (PAGINE SECONDARIE) --- */
.valori-main-title { font-weight: 800; font-size: 2.8rem; color: var(--dfr-dark); text-align: center; }

.valore-card {
    background-color: #000; color: #fff; padding: 60px 30px; text-align: center;
    border-radius: 0 0 30px 30px; 
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; height: 100%;
}
.valore-card:hover { background-color: var(--dfr-green); transform: translateY(-10px); }
.valore-card .btn-vedi { background-color: var(--dfr-green); color: #000 !important; border: none; padding: 8px 30px; font-weight: 700; border-radius: 4px; transition: 0.3s; }
.valore-card:hover .btn-vedi { background-color: #000 !important; color: var(--dfr-green) !important; }

/* --- SPECIFICA CHI SIAMO --- */
.img-history-custom { border-radius: 20px !important; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; height: auto; }
.storia-title { font-weight: 800; color: var(--dfr-dark); margin-bottom: 15px; }

/* --- FORM CONTATTO --- */
.custom-input { background-color: #f1f1f1 !important; border: none !important; border-radius: 4px !important; height: 50px; padding-left: 15px; }
.custom-input:focus { background-color: #fff !important; box-shadow: 0 0 10px rgba(118, 183, 42, 0.2) !important; }

/* --- PAGINA THANKS (SPECIFICA DA FOTO) --- */
.thanks-section-new {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: #fff;
}

.thanks-main-title {
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--dfr-dark);
    line-height: 1.1;
    margin-bottom: 30px;
}

.order-id-large {
    font-weight: 800;
    font-size: 5rem;
    color: var(--dfr-green);
    display: block;
    line-height: 1;
}

.order-label-new {
    font-size: 1.2rem;
    color: var(--dfr-green);
    font-weight: 700;
    text-transform: lowercase;
    margin-top: 5px;
}

.thanks-subtext {
    font-size: 1.3rem;
    color: #555;
    font-weight: 400;
    margin-top: 40px;
}

/* --- FOOTER --- */
footer { background-color: var(--dfr-green); color: #000; padding: 60px 0 20px; }
footer h5 { font-weight: 700; text-transform: uppercase; font-size: .9rem; margin-bottom: 20px; }
footer ul { list-style: none !important; padding: 0 !important; }
footer a { color: #000; transition: 0.3s; }
footer a:hover { color: #fff !important; text-decoration: none !important; }
.copyright-row { border-top: 1px solid rgba(0,0,0,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; }

/* --- MEDIA QUERIES --- */

/* Fix Tablet: 2 per riga con spazio centrale */
@media (min-width: 768px) and (max-width: 991px) {
    .search-box .col-md-5 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (max-width: 991px) {
    footer { text-align: center; }
    .search-box { margin-top: -250px; padding: 20px; }
    .hero-text { position: absolute; top: 25%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; color: white; z-index: 10; }
    .hero-text h1 { font-size: 2.2rem; }
    .thanks-main-title { font-size: 2rem; }
    .order-id-large { font-size: 3.5rem; }
    .carousel-control-next, .carousel-control-prev { display:none; }
}

@media (max-width: 767px) {
    .flotta-content-new h3 { font-size: 2.5rem; }
}





.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
    text-decoration: none;
    color: #fff;
}