/* --- css/style.css COMPLETO --- */

/* 1. IMPORTAZIONE FONTS E VARIABILI */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary: #E86E43;   /* Arancio Vero */
    --dark: #1a1a1a;      /* Nero scuro */
    --beige: #F6F3EC;     /* Beige sfondo */
    --accent: #C0D0A5;    /* Verde salvia */
}

/* 2. RESET E BASE */
body {
    font-family: 'League Spartan', sans-serif;
    background-color: var(--beige);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* 3. SCROLLBAR PERSONALIZZATE */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Nasconde scrollbar ma permette lo scroll (per filtri e toolbar mobile) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 4. TABELLE RESPONSIVE (Fix Mobile) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Scroll fluido su iOS */
    border-radius: 12px;
}

/* 5. COMPONENTI UI (Input, Bottoni, Card) */
.input-std {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'League Spartan', sans-serif;
    background-color: white;
    color: #1a1a1a;
}

.input-std:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 110, 67, 0.1);
}

.btn-primary {
    background-color: var(--dark);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background-color: black;
}

.card-clean {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

/* 6. LOADER ANIMATO */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--beige);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 7. OTTIMIZZAZIONI MOBILE SPECIFICHE */
@media (max-width: 768px) {
    /* Forza la larghezza massima delle modali su mobile */
    #modal-content {
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* Aumenta la dimensione dei testi dei titoli */
    .text-3xl { font-size: 1.75rem; }
    .text-2xl { font-size: 1.5rem; }
    
    /* Rende le aree cliccabili (input/bottoni) più facili da toccare */
    input, select, button {
        min-height: 44px;
    }
}

/* 8. STILI HOME PAGE / PARALLAX (Se usati) */
.floating-card {
    background-color: rgba(255, 255, 255, 0.70); 
    backdrop-filter: blur(10px);
    border-radius: 24px;
}

@media (min-width: 1024px) {
    .video-hero .word-1-letters {
        margin-bottom: -45px;
    }
}