/* ============================================================
   main.css — Stili Globali, Reset, Variabili, Font
   "The Demon's Share" — Brand Rum Premium
   ============================================================ */

/* ─── Font Face ───────────────────────────────────────────── */
@font-face {
    font-family: 'DemonsSerif';
    src: url('../fonts/thedemonshare_font_first_level.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DemonsSerif';
    src: url('../fonts/thedemonshare_font_second_level.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DemonsSans';
    src: url('../fonts/thedemonshare_font_text_level.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ─── Variabili CSS ───────────────────────────────────────── */
:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gold: #f59a1a;
    --color-white: #f5f0e8;
    --color-cream: #faf3e0;
    --color-red: #b5191a;
    --overlay-dark: rgba(0, 0, 0, 0.65);
    --overlay-darker: rgba(0, 0, 0, 0.20);
    --font-heading: 'DemonsSerif', 'Georgia', 'Times New Roman', serif;
    --font-subheading: 'DemonsSerif', 'Georgia', 'Times New Roman', serif;
    --font-body: 'DemonsSans', 'Helvetica Neue', 'Arial', sans-serif;
    --font-weight-heading: 400;
    --font-weight-subheading: 700;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* ─── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    color: var(--color-gold);
}

h1,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

h1 {
    font-weight: var(--font-weight-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-weight: var(--font-weight-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 700;
}

/* ─── Utility ──────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─── Selettore Lingua Globale ─────────────────────────────── */
.lang-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg);
    font-size: 0.85rem;
}

.lang-selector__link {
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    transition: color 0.3s ease, background 0.3s ease;
}

.lang-selector__link:hover {
    color: var(--color-gold);
}

.lang-selector__link--active {
    color: var(--color-gold) !important;
    pointer-events: none;
}

/* ─── Animazioni Globali ───────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}