/**
 * style.css
 * Stili personalizzati che completano Tailwind
 */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf8f5;
    color: #1b2a4a;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Animazione fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #b8945f;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a7a4a;
}

/* Card con bordo sottile */
.card-border {
    border: 1px solid #e8e2d8;
    background: #ffffff;
    transition: all 0.3s ease;
}

.card-border:hover {
    border-color: #b8945f;
    box-shadow: 0 10px 30px rgba(27, 42, 74, 0.08);
}

/* Watermark in background */
.watermark {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 12rem;
    font-weight: 700;
    color: rgba(27, 42, 74, 0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Statistiche */
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1b2a4a;
    line-height: 1;
}

/* Bottoni oro */
.btn-gold {
    background: #b8945f;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #9a7a4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 148, 95, 0.3);
}

/* Sottotitoli con quadratino decorativo */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b8945f;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #b8945f;
}

.eyebrow.justify-center {
    justify-content: center;
}

/* Newsletter - input su sfondo scuro */
input[type="email"]::placeholder,
input[type="text"]::placeholder {
    opacity: 0.7;
}

/* Checkbox accent */
input[type="checkbox"] {
    cursor: pointer;
}
/* Mantiene il titolo della sezione visibile sotto l’header fisso. */
#sostienici {
    scroll-margin-top: 110px;
}

/* Hero della home: riempie lo spazio disponibile sotto la navigazione. */
.home-hero {
    box-sizing: border-box;
    min-height: calc(100vh - var(--home-header-height, 80px));
    min-height: calc(100dvh - var(--home-header-height, 80px));
    display: flex;
    align-items: center;
    padding-block: clamp(2rem, 5vh, 5rem);
}

/* Lingue disponibili e versioni in preparazione. */
.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
}
.language-flag svg {
    display: block;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.language-flag.is-current { border-color: #b8945f; }
.language-flag:disabled { cursor: default; }
.language-flag:focus-visible { outline: 2px solid #b8945f; outline-offset: 3px; }

/* Bandierine compatte su mobile. */
@media (max-width: 639px) {
    .language-selector { gap: 0; }
    .language-flag { width: 24px; height: 28px; padding: 3px; }
    .language-flag svg { width: 18px; height: 12px; }
}
