/* Los Rancheros - temi dark / light */

:root,
html[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #121212;
    --color-bg-soft: #1a1a1a;
    --color-ink: #f4f1ec;
    --color-ink-soft: #b8b3ab;
    --color-heading: #ffffff;
    --color-emphasis: #ffffff;
    --color-rosa: #e0187a;
    --color-rosa-deep: #b0105f;
    --color-accent: var(--color-rosa);
    --color-teal: #2a9b92;
    --color-line: rgba(255, 255, 255, 0.12);
    --color-link-hover: #ffffff;
    --header-bg: rgba(10, 10, 10, 0.94);
    --header-panel-bg: #0a0a0a;
    --nav-link: #ffffff;
    --nav-link-secondary: var(--color-ink-soft);
    --hamburger: #ffffff;
    --btn-text: #ffffff;
    --btn-ghost-border: rgba(255, 255, 255, 0.75);
    --btn-ghost-hover-bg: #ffffff;
    --btn-ghost-hover-text: #0a0a0a;
    --hero-shade: rgba(0, 0, 0, 0.64);
    --section-accent-bg: #140910;
    --panorama-bg: #000000;
    --footer-bg: #000000;
    --footer-ink: rgba(255, 255, 255, 0.75);
    --footer-heading: #ffffff;
    --footer-link: #ffffff;
    --footer-line: rgba(255, 255, 255, 0.12);
    --input-bg: #ffffff;
    --input-ink: #0a0a0a;
    --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
    --font-hero: "Montserrat", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --space-xs: 0.4rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2.25rem;
    --space-xl: 4rem;
    --space-2xl: 6.5rem;
    --header-h: 5.75rem;
    --max: 72rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
    --color-bg: #f6f3ee;
    --color-bg-elevated: #ffffff;
    --color-bg-soft: #ebe6df;
    --color-ink: #1c1916;
    --color-ink-soft: #5a534c;
    --color-heading: #14110f;
    --color-emphasis: #14110f;
    --color-rosa: #d01270;
    --color-rosa-deep: #a00e58;
    --color-accent: var(--color-rosa);
    --color-teal: #1f7f78;
    --color-line: rgba(28, 25, 22, 0.12);
    --color-link-hover: var(--color-rosa-deep);
    --header-bg: rgba(246, 243, 238, 0.94);
    --header-panel-bg: #f6f3ee;
    --nav-link: #1c1916;
    --nav-link-secondary: #5a534c;
    --hamburger: #1c1916;
    --btn-text: #ffffff;
    --btn-ghost-border: rgba(28, 25, 22, 0.45);
    --btn-ghost-hover-bg: #1c1916;
    --btn-ghost-hover-text: #ffffff;
    --hero-shade: rgba(20, 12, 8, 0.42);
    --section-accent-bg: #f0e8e4;
    --panorama-bg: #ebe6df;
    --footer-bg: #1c1916;
    --footer-ink: rgba(246, 243, 238, 0.75);
    --footer-heading: #ffffff;
    --footer-link: #ffffff;
    --footer-line: rgba(255, 255, 255, 0.12);
    --input-bg: #ffffff;
    --input-ink: #1c1916;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--color-ink);
    background: var(--color-bg);
}

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

a {
    color: var(--color-rosa);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-link-hover);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin: 0 0 var(--space-md);
    color: var(--color-heading);
}

strong {
    color: var(--color-emphasis);
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-line);
}

.header-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.55rem 1.25rem;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo .theme-logo-dark,
.logo .theme-logo-light {
    width: 10.25rem;
    height: auto;
}

.theme-logo-light {
    display: none;
}

html[data-theme="light"] .theme-logo-dark {
    display: none;
}

html[data-theme="light"] .theme-logo-light {
    display: block;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hamburger {
    margin-left: auto;
    width: 2.5rem;
    height: 2.5rem;
    display: none;
    place-items: center;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 1.35rem;
    height: 2px;
    background: var(--hamburger);
}

.header-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.15rem 1.1rem;
}

.main-nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--color-rosa);
}

.nav-secondary {
    gap: 0.15rem 1.35rem;
}

.nav-secondary a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--nav-link-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 2;
}

.lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang-switch a {
    text-decoration: none;
    color: var(--color-ink-soft);
    padding: 0.15rem 0.3rem;
}

.lang-switch a.attiva {
    color: var(--nav-link);
    box-shadow: inset 0 -2px 0 var(--color-rosa);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 0;
    background: transparent;
    color: var(--nav-link);
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--color-rosa);
    border-color: var(--color-rosa);
}

.theme-toggle-icon {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-16a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1zm0 18a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1zM4.22 4.22a1 1 0 0 1 1.42 0l.7.7a1 1 0 1 1-1.42 1.42l-.7-.7a1 1 0 0 1 0-1.42zm14.14 14.14a1 1 0 0 1 1.42 0l.7.7a1 1 0 1 1-1.42 1.42l-.7-.7a1 1 0 0 1 0-1.42zM1 12a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1zm18 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1zM4.22 19.78a1 1 0 0 1 0-1.42l.7-.7a1 1 0 1 1 1.42 1.42l-.7.7a1 1 0 0 1-1.42 0zm14.14-14.14a1 1 0 0 1 0-1.42l.7-.7a1 1 0 1 1 1.42 1.42l-.7.7a1 1 0 0 1-1.42 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-16a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1zm0 18a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1zM4.22 4.22a1 1 0 0 1 1.42 0l.7.7a1 1 0 1 1-1.42 1.42l-.7-.7a1 1 0 0 1 0-1.42zm14.14 14.14a1 1 0 0 1 1.42 0l.7.7a1 1 0 1 1-1.42 1.42l-.7-.7a1 1 0 0 1 0-1.42zM1 12a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1zm18 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1zM4.22 19.78a1 1 0 0 1 0-1.42l.7-.7a1 1 0 1 1 1.42 1.42l-.7.7a1 1 0 0 1-1.42 0zm14.14-14.14a1 1 0 0 1 0-1.42l.7-.7a1 1 0 1 1 1.42 1.42l-.7.7a1 1 0 0 1-1.42 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-theme="light"] .theme-toggle-icon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 14.3A9.2 9.2 0 0 1 9.7 3 7.2 7.2 0 1 0 21 14.3z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 14.3A9.2 9.2 0 0 1 9.7 3 7.2 7.2 0 1 0 21 14.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.35rem;
    border: 0;
    background: var(--color-rosa);
    color: var(--btn-text);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
    background: var(--color-rosa-deep);
    color: var(--btn-text);
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
}

.btn-ghost {
    background: transparent;
    color: var(--nav-link);
    box-shadow: inset 0 0 0 2px var(--btn-ghost-border);
}

.btn-ghost:hover {
    background: var(--btn-ghost-hover-bg);
    color: var(--btn-ghost-hover-text);
}

/* Hero: una sola foto, logo centrato */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: var(--hero-shade);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-xl) 1.25rem;
}

.hero-brand {
    margin: 0;
    line-height: 0;
}

.hero-brand .hero-logo {
    display: none;
    width: min(100%, 34rem);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

html[data-theme="dark"] .hero-brand .theme-logo-dark,
html:not([data-theme]) .hero-brand .theme-logo-dark {
    display: block;
}

html[data-theme="light"] .hero-brand .theme-logo-light {
    display: block;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.section-soft {
    background: var(--color-bg-elevated);
}

.section-accent {
    background: var(--section-accent-bg);
    border-top: 1px solid var(--color-line);
}

.subhead {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

.curriculum-lead {
    max-width: 46rem;
    margin: 0 0 var(--space-lg);
    color: var(--color-ink-soft);
}

/* Panorama gruppo: contenuto, non full-bleed */
.panorama {
    max-width: 40rem;
    margin: 0 auto var(--space-lg);
    padding: 0;
}

.panorama img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: var(--panorama-bg);
}

.panorama figcaption {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--color-ink-soft);
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 52rem;
    aspect-ratio: 16 / 9;
    background: #000;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    max-width: 42rem;
    color: var(--color-ink-soft);
    margin: 0 0 var(--space-md);
}

.section-cta .section-head {
    margin-bottom: var(--space-lg);
}

.section {
    padding: var(--space-2xl) 1.25rem;
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.section-head {
    max-width: 40rem;
    margin-bottom: var(--space-xl);
}

.section-head h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.section-head p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 1.1rem;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
    align-items: center;
}

.split-visual img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.split-copy p {
    margin: 0 0 var(--space-md);
    color: var(--color-ink-soft);
}

.page-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--color-bg);
    padding: 1.25rem 1.25rem 0;
    text-align: center;
}

.page-flag-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 40rem);
    max-height: 16rem;
}

.page-flag-titles {
    max-width: 40rem;
    padding: 0 0.5rem 0.25rem;
}

.page-flag-titles h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--color-heading);
}

.page-flag-kicker {
    margin: 0;
    font-family: var(--font-hero);
    font-weight: 300;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--color-ink-soft);
}

.page-flag-brand {
    margin: 0.25rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: 0.08em;
    color: var(--color-heading);
}

.page-hero {
    padding: var(--space-xl) 1.25rem var(--space-lg);
    border-bottom: 1px solid var(--color-line);
    text-align: center;
}

.page-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.page-kicker {
    margin: 0 0 var(--space-sm);
    font-family: var(--font-hero);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--color-ink-soft);
}

.page-brand {
    margin: 0.35rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.08em;
    color: var(--color-heading);
}

.page-hero p {
    color: var(--color-ink-soft);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    padding: var(--space-lg) 1.25rem;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg-elevated);
}

.page-actions-bottom {
    border-top: 1px solid var(--color-line);
    border-bottom: 0;
}

.btn-ghost-dark {
    background: transparent;
    color: var(--nav-link);
    box-shadow: inset 0 0 0 2px var(--btn-ghost-border);
}

.btn-ghost-dark:hover {
    background: var(--btn-ghost-hover-bg);
    color: var(--btn-ghost-hover-text);
}

.hero .btn-ghost {
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.hero .btn-ghost:hover {
    background: #fff;
    color: #0a0a0a;
}

.page-body {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.prose {
    max-width: 42rem;
    margin: 0 auto;
    padding: var(--space-xl) 1.25rem var(--space-2xl);
}

.prose-page {
    max-width: 44rem;
    padding-top: 0;
    padding-bottom: var(--space-xl);
}

.prose-wide {
    max-width: none;
    margin: 0;
    padding: 0;
}

.prose h1,
.prose h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prose h1:first-child,
.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 var(--space-md);
    color: var(--color-ink-soft);
}

.prose-with-floats {
    max-width: 52rem;
    overflow: auto;
}

.chi-float {
    width: min(42%, 15.5rem);
    margin: 0.15rem 0 1rem;
    padding: 0;
}

.chi-float-right {
    float: right;
    margin-left: 1.35rem;
}

.chi-float-left {
    float: left;
    margin-right: 1.35rem;
}

.chi-float img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.chi-float-clear {
    clear: both;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    max-width: var(--max);
    margin: 0 auto var(--space-xl);
    padding: 0 1.25rem;
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.content-figure {
    margin: 0 auto var(--space-xl);
    padding: 0 1.25rem;
    max-width: var(--max);
}

.content-figure-wide {
    max-width: var(--max);
}

.content-figure img {
    width: 100%;
    height: auto;
}

.curriculum-figure {
    max-width: 40rem;
}

.curriculum-prose {
    max-width: 52rem;
}

.curriculum-section + .curriculum-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-line);
}

.curriculum-prose h3 {
    margin: var(--space-md) 0 var(--space-sm);
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--color-accent);
}

.curriculum-list {
    margin: 0 0 var(--space-md);
    padding: 0;
    list-style: none;
    color: var(--color-ink-soft);
}

.curriculum-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.1rem;
    border-bottom: 1px solid var(--color-line);
    line-height: 1.45;
}

.curriculum-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.85;
}

@media (min-width: 720px) {
    .curriculum-list {
        columns: 2;
        column-gap: 2rem;
    }

    .curriculum-list li {
        break-inside: avoid;
    }

    .curriculum-list-single {
        columns: 1;
    }
}

.curriculum-note {
    margin: 0 0 0.55rem;
    color: var(--color-ink-soft);
    font-weight: 600;
}

.direttrice-intro {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    max-width: var(--max);
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg) 1.25rem;
    border-bottom: 1px solid var(--color-line);
}

.direttrice-portrait {
    width: 7.5rem;
    height: auto;
    border: 3px solid var(--color-accent);
}

.direttrice-ohtli {
    margin: 0;
    text-align: center;
    color: var(--color-ink-soft);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 28rem;
    justify-self: center;
}

.direttrice-medal {
    width: 10rem;
    height: auto;
}

.direttrice-collage {
    max-width: min(100%, 56rem);
    max-height: none;
    width: 100%;
    background: #9ec4ff;
}

.repertorio-hero-img {
    max-width: min(100%, 56rem);
    max-height: none;
    width: 100%;
}

.repertorio-intro {
    text-align: center;
    max-width: 40rem;
}

.repertorio-lead {
    margin: 0 0 var(--space-md);
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    color: var(--color-heading);
    line-height: 1.4;
}

.repertorio-summary {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--color-ink-soft);
}

.repertorio-summary li {
    padding: 0.35rem 0;
}

.repertorio-dances {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem var(--space-2xl);
}

.repertorio-dances-title {
    margin: 0 0 var(--space-xl);
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.repertorio-grid {
    display: grid;
    gap: var(--space-lg) 2.5rem;
}

.repertorio-region h3 {
    margin: 0 0 var(--space-sm);
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(224, 24, 122, 0.35);
    padding-bottom: 0.35rem;
}

.repertorio-list {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--color-ink-soft);
}

.repertorio-list li {
    padding: 0.25rem 0;
    line-height: 1.4;
}

@media (min-width: 720px) {
    .repertorio-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.scheda-body {
    padding-bottom: var(--space-xl);
}

.scheda-grid {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.scheda-figure {
    margin: 0 0 var(--space-lg);
}

.scheda-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.scheda-block {
    margin-bottom: var(--space-lg);
}

.scheda-block h2 {
    margin: 0 0 var(--space-sm);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.scheda-block p {
    margin: 0 0 var(--space-md);
    color: var(--color-ink-soft);
}

.scheda-block p:last-child {
    margin-bottom: 0;
}

.scheda-block strong {
    color: var(--color-emphasis);
    font-weight: 700;
}

.scheda-cta .section-head {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.scheda-cta .section-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.scheda-cta .hero-actions {
    justify-content: center;
}

@media (min-width: 900px) {
    .scheda-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 2.5rem;
    }
}

.foto-hero-img {
    max-width: min(100%, 56rem);
    max-height: none;
    width: 100%;
}

.foto-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.85rem;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem var(--space-xl);
}

.foto-item {
    margin: 0;
}

.foto-thumb {
    display: block;
    overflow: hidden;
    background: #111;
}

.foto-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.foto-thumb:hover img,
.foto-thumb:focus-visible img {
    transform: scale(1.04);
}

.foto-item figcaption {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--color-ink-soft);
}

.foto-cta .section-head {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.foto-cta .section-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.foto-cta .hero-actions {
    justify-content: center;
}

.foto-lightbox {
    position: relative;
    width: min(96vw, 72rem);
    max-width: 96vw;
    max-height: 94vh;
    margin: auto;
    padding: 2.5rem 3rem 1.25rem;
    border: 0;
    background: transparent;
    color: #fff;
}

.foto-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.foto-lightbox-figure {
    margin: 0;
    text-align: center;
}

.foto-lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.foto-lightbox-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.foto-lightbox-close,
.foto-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.35rem 0.65rem;
}

.foto-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.foto-lightbox-prev {
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
}

.foto-lightbox-next {
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
}

.foto-lightbox-close:hover,
.foto-lightbox-nav:hover {
    background: var(--color-accent);
}

@media (min-width: 700px) {
    .foto-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.15rem 1rem;
    }
}

@media (min-width: 1000px) {
    .foto-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.video-hero-img {
    max-width: min(100%, 56rem);
    max-height: none;
    width: 100%;
}

.video-gallery {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem var(--space-2xl);
}

.video-entry {
    display: grid;
    gap: var(--space-lg);
    align-items: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-line);
}

.video-entry:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.video-entry-media .video-frame {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
}

.video-frame-file video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-entry-copy h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--color-heading);
}

.video-entry-sub {
    margin: 0 0 var(--space-sm);
    color: var(--color-ink-soft);
    font-size: 1.05rem;
}

.video-entry-copy p {
    margin: 0 0 0.45rem;
    color: var(--color-ink-soft);
}

.video-entry-copy ul {
    margin: 0 0 var(--space-sm);
    padding-left: 1.2rem;
    color: var(--color-ink-soft);
}

.video-entry-copy li {
    margin-bottom: 0.3rem;
}

@media (min-width: 860px) {
    .video-entry {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        gap: 2rem;
    }

    .video-entry-flip {
        grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    }

    .video-entry-flip .video-entry-media {
        grid-column: 2;
        grid-row: 1;
    }

    .video-entry-flip .video-entry-copy {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
    }

    .video-entry-flip .video-entry-copy ul {
        list-style-position: inside;
    }
}

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

.contatti-panel {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem var(--space-2xl);
}

.contatti-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.contatti-logo {
    width: 10rem;
    height: auto;
}

.contatti-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contatti-list li {
    margin: 0 0 0.65rem;
}

.contatti-list a {
    color: var(--color-heading);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    letter-spacing: 0.03em;
}

.contatti-list a:hover {
    color: var(--color-rosa);
}

.contatti-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: #3b5998;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contatti-social:hover {
    filter: brightness(1.1);
}

.contatti-form-wrap h2 {
    margin: 0 0 var(--space-lg);
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contatti-form {
    display: grid;
    gap: 0.85rem;
}

.contatti-form-row {
    display: grid;
    gap: 0.85rem;
}

.contatti-field {
    display: block;
}

.contatti-field input,
.contatti-field textarea {
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-line);
    border-radius: 0;
    background: var(--input-bg);
    color: var(--input-ink);
    font: inherit;
}

.contatti-field textarea {
    min-height: 10rem;
    resize: vertical;
}

.contatti-field input::placeholder,
.contatti-field textarea::placeholder {
    color: #888;
}

.contatti-field input:focus,
.contatti-field textarea:focus {
    outline: 2px solid var(--color-rosa);
    outline-offset: 1px;
}

.contatti-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.35rem;
}

.contatti-form-note {
    margin: 0.5rem 0 0;
    color: var(--color-teal);
}

@media (min-width: 640px) {
    .contatti-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .contatti-panel {
        grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.6fr);
        gap: 2.5rem;
        align-items: start;
        padding: var(--space-lg) 1.25rem var(--space-2xl);
        background: var(--color-bg-elevated);
        border: 1px solid var(--color-line);
    }
}

.direttrice-videos {
    max-width: var(--max);
    margin: 0 auto var(--space-xl);
    padding: 0 1.25rem var(--space-xl);
    border-bottom: 1px solid var(--color-line);
    text-align: center;
}

.direttrice-videos h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin: 0 0 var(--space-lg);
    text-transform: none;
    letter-spacing: 0.02em;
}

.direttrice-video-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    justify-items: center;
    max-width: 44rem;
    margin: 0 auto;
}

.direttrice-video-row .video-frame {
    margin-bottom: 0;
    max-width: 100%;
}

@media (min-width: 700px) {
    .direttrice-video-row {
        grid-template-columns: 1fr 1fr;
        max-width: 48rem;
    }
}

.direttrice-grid {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem var(--space-xl);
}

.direttrice-grid.curriculum-prose {
    max-width: var(--max);
}

.direttrice-col .curriculum-section + .curriculum-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}

.direttrice-attivita {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem var(--space-xl);
}

.direttrice-attivita.curriculum-prose {
    max-width: var(--max);
}

@media (max-width: 719px) {
    .direttrice-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (min-width: 900px) {
    .direttrice-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    padding: var(--space-xl) 1.25rem var(--space-lg);
    border-top: 1px solid var(--color-line);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto var(--space-lg);
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--footer-heading);
}

.footer-tag,
.footer-founded {
    margin: 0.15rem 0;
}

.footer-mail,
.site-footer a {
    color: var(--footer-link);
}

.footer-copy {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--footer-line);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .hamburger {
        display: grid;
    }

    .header-panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--header-panel-bg);
        border-bottom: 1px solid var(--color-line);
    }

    .nav-toggle:checked ~ .header-panel {
        display: flex;
    }

    .main-nav {
        position: static;
        left: auto;
        transform: none;
        align-items: stretch;
        gap: 1.25rem;
    }

    .main-nav ul {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .nav-secondary {
        padding-top: 0.75rem;
        border-top: 1px solid var(--color-line);
    }

    .nav-secondary a {
        font-size: 0.82rem;
        color: var(--nav-link);
    }

    .header-actions {
        margin-left: 0;
        justify-content: space-between;
    }

    .lang-switch {
        margin-left: auto;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .photo-strip {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .chi-float,
    .chi-float-right,
    .chi-float-left {
        float: none;
        width: min(100%, 18rem);
        margin-left: auto;
        margin-right: auto;
    }

    .logo .theme-logo-dark,
    .logo .theme-logo-light {
        width: 7.25rem;
        height: auto;
    }
}
