/* ==========================================================================
   Dance Gallery — CSS Framework
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
    font-family: 'Regular Brush';
    src: url('../font/regular_brush.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens -------------------------------------------------------- */

:root {
    /* Brand colors */
    --color-primary: #d81b7a;
    --color-primary-dark: #b81566;
    --color-secondary: #00b5ad;
    --color-dark: #0a0a0a;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: rgba(255, 255, 255, 0.88);
    --color-heading: #1c1f24;
    --color-body: #4a4f57;

    /* Colori percorsi */
    --color-teal: #139e87;
    --color-teal-light: #14b5a2;
    --color-purple: #6349a0;
    --color-purple-light: #9059b4;
    --color-magenta: #e2277a;
    --color-orange: #ec6406;
    --color-lime: #c9ca03;

    /* Typography */
    --font-sans: 'Montserrat', system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Regular Brush', cursive;

    --text-xs: 0.6rem;
    --text-sm: 0.7rem;
    --text-base: 0.8rem;
    --text-lg: 0.9rem;
    --text-xl: 1rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.6rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;

    --leading-tight: 1.15;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Layout */
    --container-max: 72rem;
    --container-padding: 1.25rem;
    --header-height: 5.5rem;
    /* Ingombro reale dell'header: il logo sborda oltre --header-height. */
    --header-full-height: 8.5rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --text-4xl: 3.25rem;
        --text-5xl: 4.25rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2.5rem;
        --text-5xl: 4.75rem;
        --header-full-height: 9.5rem;
    }
}

/* --- Layout --------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* --- Typography utilities ------------------------------------------------- */

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Flex utilities ------------------------------------------------------- */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

/* --- Visibility ----------------------------------------------------------- */

.hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hidden-desktop {
        display: none !important;
    }
}
