:root {
    --ink: #111111;
    --muted: #5a5a5a;
    --soft: #8a8a8a;
    --line: #e8e8e8;
    --paper: #ffffff;
    --wash: #f6f6f6;
    --accent: #e54a23;
    --header: 84px;
    --max: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* Foto: leggero schiarimento (richiesta Studio) — alzare/abbassare se serve */
    --photo-brightness: 1.14;
    --photo-contrast: 1.04;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    overflow-x: hidden;
}

#contenuto {
    flex: 1 0 auto;
}

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

a {
    color: var(--ink);
    text-underline-offset: 0.18em;
}

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

h1,
h2,
.footer-name {
    font-family: "Funnel Sans", Inter, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.96;
    margin: 0;
    text-align: left;
}

h1 {
    font-size: clamp(3rem, 9vw, 6.5rem);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
}

p {
    margin: 0 0 1rem;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--ink);
    color: #fff;
    padding: 0.45rem 0.75rem;
    z-index: 30;
}

.skip:focus {
    top: 0.7rem;
}

.wrap {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand img {
    width: 148px;
    height: auto;
}

.header-bar > .edit-block {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
}

.nav-button {
    display: none;
}

.site-nav ul {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    font-style: italic;
}

.lang-switch-nav {
    display: none !important;
}

.lang-switch a {
    color: var(--soft);
    text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a.is-active {
    color: var(--ink);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.header-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--soft);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.72);
}

.hero {
    padding: 1.5rem 0 0;
}

.hero-full {
    position: relative;
    display: flex;
    align-items: center;
    /* Desktop: altezza contenuta, non tutta la viewport sugli schermi grandi */
    height: min(70vh, 680px);
    min-height: 500px;
    padding: 0;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.hero-full > .edit-block[data-edit-block="home-images"] {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-full > .edit-block[data-edit-block="home"] {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: inherit;
    pointer-events: none;
}

.hero-full > .edit-block[data-edit-block="home"] .edit-badge,
.hero-full > .edit-block[data-edit-block="home"] .hero-intro,
.hero-full > .edit-block[data-edit-block="home"] .hero-intro a {
    pointer-events: auto;
}

.hero-full > .hero-media,
.hero-full > .edit-block[data-edit-block="home-images"] .hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
    background: #111;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.58) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.04) 100%);
}

.hero-intro {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: 2rem 4rem;
    align-items: center;
    width: 100%;
    padding: 3.5rem 0;
}

.hero-full .hero-intro.wrap {
    width: min(var(--max), calc(100% - 4.5rem));
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    color: #fff;
}

.hero-title {
    min-width: 0;
}

.hero-title h1 {
    max-width: 9ch;
    color: #fff;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line > span {
    display: block;
}

.hero-accent {
    display: block;
    width: 4.5rem;
    height: 2px;
    margin-top: 1.15rem;
    background: var(--accent);
    transform-origin: left center;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 28rem;
    justify-self: start;
    padding-bottom: 0.35rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-full .hero-title h1 {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-lead p:first-child {
    color: #fff;
}

.hero-media img,
.hero-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(var(--photo-brightness)) contrast(var(--photo-contrast));
}

.hero-media[data-hero-carousel] img,
.hero-stage[data-hero-carousel] img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: none;
    transition: opacity 1.15s var(--ease);
    pointer-events: none;
}

.hero-media[data-hero-carousel] img.is-active,
.hero-stage[data-hero-carousel] img.is-active {
    opacity: 1;
    z-index: 1;
}

.media-frame.is-inview img,
.page-banner.is-inview img {
    transform: scale(1);
}

/* Home entrance — semplice, professionale */
.home-enter .site-header {
    animation: homeHeaderIn 0.8s var(--ease) both;
}

.home-enter .hero-intro-enter .eyebrow {
    opacity: 0;
    transform: translateY(12px);
    animation: homeFadeUp 0.7s var(--ease) 0.12s forwards;
}

.home-enter .hero-intro-enter .hero-line > span {
    transform: translateY(105%);
    animation: homeLineUp 0.95s var(--ease) forwards;
}

.home-enter .hero-intro-enter .hero-line:nth-child(1) > span {
    animation-delay: 0.22s;
}

.home-enter .hero-intro-enter .hero-line:nth-child(2) > span {
    animation-delay: 0.34s;
}

.home-enter .hero-intro-enter .hero-line:nth-child(3) > span {
    animation-delay: 0.46s;
}

.home-enter .hero-intro-enter .hero-accent {
    transform: scaleX(0);
    animation: homeAccent 0.7s var(--ease) 0.72s forwards;
}

.home-enter .hero-intro-enter .hero-lead {
    opacity: 0;
    transform: translateY(14px);
    animation: homeLeadIn 2s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards;
}

@keyframes homeHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes homeFadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes homeLeadIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes homeLineUp {
    to {
        transform: translateY(0);
    }
}

@keyframes homeAccent {
    to {
        transform: scaleX(1);
    }
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.button:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.button-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.button-ghost:hover {
    background: var(--ink);
    color: #fff;
}

.button-light {
    background: #fff;
    color: var(--ink);
}

.button-light:hover {
    background: var(--accent);
    color: #fff;
}

.button-ghost-light {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.button-ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px #fff;
    color: #fff;
}

.hero-tagline {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.page-hero-lead {
    margin-top: 1rem;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.prose .lead,
.studio-intro .lead {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 40rem;
}

.studio-sections {
    display: grid;
    gap: 2rem;
    margin: 2.5rem auto 1rem;
}

.studio-block h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    margin-bottom: 0.75rem;
}

.studio-block p {
    color: var(--muted);
}

.studio-actions {
    margin-top: 2rem;
}

.competenze-intro {
    margin-bottom: 1.75rem;
}

.competenze-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.75rem;
    align-items: stretch;
}

.competenza-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
    min-height: 11.5rem;
    padding: 1.35rem 1.3rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.competenza-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.competenza-card .activity-num {
    padding-top: 0;
    line-height: 1;
}

.competenza-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-family: "Funnel Sans", Inter, sans-serif;
    font-size: 1.12rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.28;
    min-height: calc(1.28em * 3);
    color: var(--ink);
}

.competenza-card-tag {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: auto;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
}

.competenza-card-tag:empty {
    min-height: 0;
}

.competenza-card em {
    font-style: normal;
    color: var(--soft);
    line-height: 1;
    transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.competenza-card:hover {
    border-color: var(--ink);
}

.competenza-card:hover em {
    color: var(--accent);
    transform: translateX(3px);
}

.contenzioso-feature {
    margin-bottom: 1rem;
}

.contenzioso-feature-inner {
    padding: 2rem 1.75rem;
    background: #111;
    color: rgba(255, 255, 255, 0.78);
}

.contenzioso-feature-inner .eyebrow {
    color: rgba(255, 255, 255, 0.55);
}

.contenzioso-feature-inner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0.35rem 0 1rem;
    max-width: 28rem;
}

.contenzioso-feature-inner p {
    max-width: 40rem;
}

.contenzioso-feature-inner .button {
    margin-top: 1.25rem;
}

.service-list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.service-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    padding-left: 1.1rem;
    position: relative;
}

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

.competenza-detail {
    margin-bottom: 2.5rem;
}

.competenza-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0 0.5rem;
    border-top: 1px solid var(--line);
    margin-bottom: 1rem;
}

.competenza-pager-link {
    display: grid;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--ink);
    max-width: 18rem;
}

.competenza-pager-link.is-next {
    justify-self: end;
    text-align: right;
}

.competenza-pager-link strong {
    font-size: 0.98rem;
    line-height: 1.3;
}

.competenza-pager-link span {
    color: var(--soft);
}

.competenza-pager-all {
    text-decoration: none;
    color: var(--soft);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.competenza-pager-all:hover,
.competenza-pager-link:hover {
    color: var(--accent);
}

.partners-intro {
    margin-bottom: 2rem;
}

.sede-copy {
    margin-bottom: 1.5rem;
}

.sede-cta {
    margin-top: 1.25rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.text-link::after {
    content: "→";
    transition: transform 0.3s var(--ease);
}

.text-link:hover::after {
    transform: translateX(4px);
}

.band {
    padding: 5rem 0 4rem;
    background: var(--wash);
}

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.band-copy {
    color: var(--muted);
    max-width: 34rem;
}

.band-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.media-frame {
    margin: 0;
    overflow: hidden;
    background: #ddd;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(var(--photo-brightness)) contrast(var(--photo-contrast));
    transition: transform 1.1s var(--ease), filter 0.35s var(--ease);
}

.media-frame:hover img {
    transform: scale(1.05);
}

.band-photos .media-frame {
    height: 420px;
}

.media-frame-offset {
    margin-bottom: 3.5rem;
}

.feature-strip {
    position: relative;
    display: grid;
    place-items: end start;
    min-height: 420px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #222;
}

.feature-strip-bg {
    position: absolute;
    inset: 0;
}

.feature-strip-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(var(--photo-brightness)) contrast(var(--photo-contrast));
    object-position: center center;
    transform: scale(1.06);
    transition: transform 1.1s var(--ease);
}

.feature-strip.is-inview .feature-strip-bg img {
    transform: scale(1);
}

.feature-strip.is-inview:hover .feature-strip-bg img,
.feature-strip:hover .feature-strip-bg img {
    transform: scale(1.05);
}

.feature-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.feature-strip-inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 0;
    text-align: left;
}

.feature-strip-label {
    display: grid;
    gap: 0.25rem;
}

.feature-strip-label strong {
    font-family: "Funnel Sans", Inter, sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.96;
    color: #fff;
}

.feature-strip-label em {
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
    color: inherit;
}

.feature-strip:hover,
.feature-strip:hover .feature-strip-label strong,
.feature-strip:hover .feature-strip-label em {
    color: var(--accent);
}

.mosaic {
    padding: 1.25rem 0 4.5rem;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.mosaic-grid .media-frame,
.mosaic-grid .media-cta {
    height: 360px;
}

.media-cta {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #222;
}

.media-cta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(var(--photo-brightness)) contrast(var(--photo-contrast));
    transition: transform 1.1s var(--ease), filter 0.35s var(--ease);
}

.media-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.42));
}

.media-cta-label {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 1;
    display: grid;
    gap: 0.25rem;
}

.media-cta-label strong {
    font-family: "Funnel Sans", Inter, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.media-cta-label em {
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.media-cta:hover img {
    transform: scale(1.05);
}

.page {
    padding-bottom: 4rem;
}

.page-hero {
    padding: 2.5rem 0 1.5rem;
}

.page-hero-full {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(48vh, 440px);
    margin-bottom: 2.75rem;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.page-hero-full > .edit-block[data-edit-block="attivita-image"],
.page-hero-full > .edit-block[data-edit-block="competenze-image"],
.page-hero-full > .edit-block[data-edit-block="studio-image"] {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-hero-full > .edit-block[data-edit-block="attivita"],
.page-hero-full > .edit-block[data-edit-block="competenze"],
.page-hero-full > .edit-block[data-edit-block="studio"] {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: inherit;
    pointer-events: none;
}

.page-hero-full > .edit-block[data-edit-block="attivita"] .edit-badge,
.page-hero-full > .edit-block[data-edit-block="attivita"] .page-hero-intro,
.page-hero-full > .edit-block[data-edit-block="competenze"] .edit-badge,
.page-hero-full > .edit-block[data-edit-block="competenze"] .page-hero-intro,
.page-hero-full > .edit-block[data-edit-block="studio"] .edit-badge,
.page-hero-full > .edit-block[data-edit-block="studio"] .page-hero-intro {
    pointer-events: auto;
}

.page-hero-full > .page-hero-media,
.page-hero-full > .edit-block .page-hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
    background: #111;
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 100%);
}

.page-hero-intro {
    position: relative;
    z-index: 3;
    width: min(var(--max), calc(100% - 4.5rem));
    margin-inline: auto;
    padding: 2.5rem 0.35rem;
}

.page-hero-intro h1 {
    color: #fff;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.page-banner {
    margin: 0 0 3rem;
    height: min(52vh, 520px);
    overflow: hidden;
}

.page-banner img,
.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(var(--photo-brightness)) contrast(var(--photo-contrast));
}

.page-banner img {
    transform: scale(1.05);
    transition: transform 1.4s var(--ease);
}

.page-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
    gap: 3rem;
    align-items: start;
}

.prose {
    color: var(--muted);
    max-width: 42rem;
}

.prose p:first-child {
    color: var(--ink);
    font-size: 1.18rem;
}

.page-aside .media-frame {
    height: 520px;
    position: sticky;
    top: calc(var(--header) + 1rem);
}

.activity-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.activity-index {
    position: sticky;
    top: calc(var(--header) + 1rem);
}

.activity-index ol {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.activity-index li {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
}

.activity-index a,
.activity-index span:not(.activity-num) {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.activity-index span:not(.activity-num) {
    color: var(--soft);
}

.activity-index a:hover {
    color: var(--accent);
}

.activity-num {
    color: var(--soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

.sheet {
    padding: 0 0 2rem;
    margin: 0 0 2rem;
    border-bottom: 1px solid var(--line);
}

.sheet-head {
    display: flex;
    gap: 0.85rem;
    align-items: baseline;
    margin-bottom: 0.85rem;
}

.sheet-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.sheet-kicker {
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sheet p {
    color: var(--muted);
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 3rem 0 1.4rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr auto;
    gap: 1.75rem;
}

.footer-name {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
}

.footer-name::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2px;
    margin-top: 0.75rem;
    background: var(--accent);
}

.email-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
}

/* Colonna: stessa larghezza per tutti i loghi (altezza proporzionale). */
.footer-partners {
    --footer-logo-w: 168px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.footer-partner {
    display: block;
    width: var(--footer-logo-w);
    line-height: 0;
    transition: opacity 0.3s var(--ease);
}

.footer-partner:hover,
.footer-partner:focus-visible {
    opacity: 0.82;
}

.footer-partner img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right center;
    background: transparent;
}

.footer-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

.footer-base p {
    margin: 0;
}

.footer-base-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
}

.site-footer a.footer-privacy {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
}

.site-footer a.footer-privacy:hover {
    color: #fff;
}

.site-footer a.footer-smr {
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.site-footer a.footer-smr:hover {
    color: var(--accent);
}

.privacy-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 2rem;
}

.privacy-docs ul,
.simple-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.privacy-docs li,
.simple-list li {
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
}

.privacy-docs a,
.simple-list a {
    text-decoration: none;
    font-weight: 600;
}

.simple-list li {
    display: grid;
    gap: 0.25rem;
}

.privacy-copy {
    color: var(--muted);
    max-width: 48rem;
    opacity: 1;
}

.privacy-copy h2 {
    margin: 2rem 0 0.85rem;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: var(--ink);
}

.sede-box {
    max-width: 36rem;
    padding-bottom: 3rem;
}

.sede-name {
    font-family: "Funnel Sans", Inter, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.list-page {
    padding-bottom: 3rem;
    max-width: 40rem;
}

.brand-lead {
    margin: 0.85rem 0 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.brand-lead--empty {
    display: none;
}

.edit-on .brand-lead--empty {
    display: block;
    min-height: 1.4em;
    opacity: 0.45;
}

.brand-list {
    max-width: 42rem;
    border-top: 1px solid var(--line);
}

.brand-row {
    --brand-logo-col: 140px;
    --brand-gap: 1.35rem;
    display: grid;
    grid-template-columns: var(--brand-logo-col) minmax(0, 1fr);
    column-gap: var(--brand-gap);
    row-gap: 0.45rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.brand-list--partner .brand-row {
    --brand-logo-col: 180px;
}

.brand-row--no-logo {
    grid-template-columns: minmax(0, 1fr);
}

.brand-row-head {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--brand-gap);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.35s var(--ease);
}

.brand-row-head:hover,
.brand-row-head:focus-visible {
    opacity: 0.82;
}

.brand-row-text {
    grid-column: 2;
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.brand-row--no-logo .brand-row-text {
    grid-column: 1;
}

.brand-row-text--empty {
    display: none;
}

.edit-on .brand-row-text--empty {
    display: block;
    min-height: 1.3em;
    opacity: 0.4;
}

.brand-row-logo-wrap {
    flex: 0 0 var(--brand-logo-col);
    width: var(--brand-logo-col);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 52px;
}

.brand-list--partner .brand-row-logo-wrap {
    min-height: 72px;
}

.brand-row-logo {
    display: block;
    width: 100%;
    max-height: 56px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.brand-list--partner .brand-row-logo {
    max-height: 78px;
}

.brand-row-meta {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.brand-row-name {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.brand-row-url {
    color: var(--accent, #c45c26);
    font-weight: 600;
    font-size: 0.92rem;
    word-break: break-word;
}

@media (max-width: 520px) {
    .brand-row {
        --brand-logo-col: 108px;
        --brand-gap: 1rem;
    }

    .brand-list--partner .brand-row {
        --brand-logo-col: 128px;
    }

    .brand-row-logo-wrap {
        min-height: 44px;
    }

    .brand-list--partner .brand-row-logo-wrap {
        min-height: 56px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.is-inview {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .hero-stage img,
    .media-frame img,
    .media-cta img,
    .page-banner img,
    .feature-strip-bg img,
    .home-enter .site-header,
    .home-enter .hero-intro-enter .eyebrow,
    .home-enter .hero-intro-enter .hero-line > span,
    .home-enter .hero-intro-enter .hero-accent,
    .home-enter .hero-intro-enter .hero-lead,
    .hero-media[data-hero-carousel] img,
    .hero-stage[data-hero-carousel] img {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
        transition: none !important;
    }

    .hero-media[data-hero-carousel] img:not(.is-active),
    .hero-stage[data-hero-carousel] img:not(.is-active) {
        display: none !important;
    }
}

@media (max-width: 920px) {
    .header-bar {
        padding-right: max(0.35rem, env(safe-area-inset-right));
        gap: 0.85rem;
    }

    .nav-button {
        display: inline-flex;
        margin-left: 0;
        border: 1px solid var(--line);
        border-radius: 999px;
        min-height: 2.4rem;
        padding: 0.4rem 0.95rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .header-tools {
        display: none;
    }

    .header-bar > .brand,
    .header-bar > .edit-block:has(.brand) {
        margin-left: auto;
    }

    .brand {
        padding-right: 0.35rem;
        margin-right: 0.15rem;
    }

    .brand img {
        width: 120px;
    }

    .privacy-layout {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 1.25rem 1.1rem;
    }

    .site-nav > ul:first-child {
        flex-direction: column;
        gap: 0;
    }

    .site-nav > ul:first-child a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
    }

    .lang-switch-bar {
        display: none !important;
    }

    .site-nav .lang-switch-nav {
        display: flex !important;
        gap: 0.55rem;
        margin-top: 0.85rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--line);
        font-size: 0.78rem;
        font-style: italic;
        font-weight: 400;
        letter-spacing: normal;
        text-transform: none;
    }

    .site-nav .lang-switch-nav a {
        display: inline;
        padding: 0;
        border: 0;
        color: var(--soft);
        text-decoration: none;
        font-size: inherit;
        font-style: inherit;
        font-weight: inherit;
        letter-spacing: inherit;
        text-transform: none;
    }

    .site-nav .lang-switch-nav a:hover,
    .site-nav .lang-switch-nav a.is-active {
        color: var(--ink);
    }

    .nav-toggle:checked ~ .site-nav {
        display: block;
    }

    .hero-full {
        height: auto;
        min-height: calc(100svh - var(--header));
    }

    @supports (height: 100dvh) {
        .hero-full {
            min-height: calc(100dvh - var(--header));
        }
    }

    .hero-intro {
        padding: 3rem 0 2.25rem;
        gap: 1.5rem;
    }

    .hero-full .hero-intro.wrap {
        width: min(var(--max), calc(100% - 3rem));
    }

    .hero-intro,
    .band-grid,
    .band-photos,
    .mosaic-grid,
    .page-split,
    .activity-layout,
    .competenze-grid,
    .competenza-pager,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .competenza-pager-link.is-next {
        justify-self: start;
        text-align: left;
    }

    .page-banner {
        height: 280px;
    }

    .page-hero-full {
        min-height: min(42vh, 320px);
    }

    .page-hero-intro {
        width: min(var(--max), calc(100% - 3rem));
    }

    .band-photos .media-frame,
    .mosaic-grid .media-frame,
    .mosaic-grid .media-cta,
    .page-aside .media-frame {
        height: 260px;
    }

    .media-frame-offset {
        margin-bottom: 0;
    }

    .activity-index {
        position: static;
    }

    .page-aside .media-frame {
        position: static;
    }
}
