/* Definizione variabili CSS (Branding) */
:root {
    --primary-color: #4a311e; /* Marrone scuro del testo "Archiv" */
    --secondary-color: #cf9249; /* Oro del testo "360" e del cuore */
    --bg-light: #f8f9fa;
    --text-dark: #333333;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Forza il footer in basso */
}

/* Navbar personalizzata */
.navbar-custom {
    background-color: var(--primary-color);
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #ffffff;
}

/* Espande il contenuto principale per spingere il footer a fine pagina */
main.flex-grow-1 {
    flex-grow: 1;
}

/* Footer styling */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Rimpicciolisce visivamente il QR Code HD generato dal JS */
    #qrcode canvas, #qrcode img {
        width: 100%;
        max-width: 180px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

 /* ---- STILI LANDING PAGE ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    color: #ffffff;
    padding: 100px 0 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem; /* Leggermente più grande per favorire la lettura */
    font-weight: 400; /* Da 300 (troppo sottile) a 400 (normale) */
    color: #f8f9fa !important; /* Grigio chiarissimo/Bianco brillante forzato */
    opacity: 1; /* Rimuoviamo l'opacità che abbassava il contrasto */
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8); /* Ombra scura per staccare dal background */
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
    transition: transform 0.3s;
}
.pillar-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.pricing-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.cta-section {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 80px 0;
    border-radius: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}

/* ---- STILI DEL NUOVO LOGO MULTILINGUA ---- */
.brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.brand-icon {
    width: 45px; /* Grandezza per la navbar */
    height: auto;
    margin-right: 12px;
    transition: transform 0.3s;
}

.brand-custom:hover .brand-icon {
    transform: rotate(15deg); /* Piccolo effetto wow al passaggio del mouse */
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Font Serif elegante che imita il tuo logo originale */
.brand-title {
    font-family: 'Times New Roman', Times, serif; 
    font-size: 2.2rem;
    line-height: 0.9;
    margin: 0;
    padding: 0;
    letter-spacing: 1px;
}

.brand-title .archiv { color: #ffffff; } /* Bianco perché la navbar è scura */
.brand-title .tre { color: var(--secondary-color); } /* Oro */

.brand-subtitle {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 0.55rem;
    color: var(--secondary-color); /* Oro */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 3px;
    font-weight: bold;
}
/* ---- STILI SPECIFICI PER IL LOGO GIGANTE (LANDING PAGE) ---- */
.hero-brand {
    margin: 0 auto;
    max-width: 100%; /* Previene lo sforamento */
}

.hero-brand .brand-icon {
    width: 80px; /* Molto grande su Desktop */
}

.hero-brand .brand-title {
    font-size: 3.5rem; /* Titolo gigante */
}

.hero-brand .brand-subtitle {
    font-size: 0.85rem;
    white-space: normal; /* Permette al testo di andare a capo se lo schermo è strettissimo */
    line-height: 1.2;
}

/* FIX ASSOLUTO ANTI-SCROLL ORIZZONTALE */
body, html {
    overflow-x: hidden;
}

/* Adattamento automatico per gli Smartphone */
@media (max-width: 768px) {
    .hero-brand .brand-icon {
        width: 60px; /* Si rimpicciolisce per stare nel telefono */
    }
    .hero-brand .brand-title {
        font-size: 2.8rem;
    }
    .hero-brand .brand-subtitle {
        font-size: 0.65rem; /* Sottotitolo più piccolo e compatto */
    }
}