/* =========================================
   VARIABILI
========================================= */

:root {

    --background: #fbfaf6;
    --background-alt: #f3f0e8;

    --red: #9c0023;
    --red-dark: #650017;

    --text: #1c1a18;
    --text-soft: #504c47;

    --gold: #d4bb77;
    --line: #ddd7c9;

    --title-font: "Lora", Georgia, serif;
    --body-font: "Montserrat", Arial, sans-serif;

}


/* =========================================
   RESET
========================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family: var(--body-font);

    background: var(--background);

    color: var(--text);

    font-size: 16px;

    line-height: 1.7;

}


img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button {

    font: inherit;

}


/* =========================================
   CONTAINER GENERALI
========================================= */

.container {

    width: min(1380px, calc(100% - 80px));

    margin: auto;

}


.container.narrow {

    width: min(1180px, calc(100% - 80px));

}


.section {

    padding: 125px 0;

}


/* =========================================
   HEADER
========================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(251, 250, 246, 0.97);

    border-bottom: 1px solid #e5e0d6;

    backdrop-filter: blur(15px);

}


.header-inner {

    width: min(1450px, calc(100% - 60px));

    min-height: 115px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;

}


/* =========================================
   LOGO HEADER
========================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;

}


.brand-logo-wrapper {

    width: 84px;
    height: 84px;

    flex: 0 0 84px;

    overflow: hidden;

    border-radius: 50%;

    background: #c90026;

}


.brand-logo {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    border-radius: 50%;

}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.25;

}


.brand-small {

    font-size: 9px;

    letter-spacing: 1.4px;

}


.brand-large {

    margin-top: 3px;

    font-family: var(--title-font);

    font-size: 15px;

    font-weight: 500;

}


/* =========================================
   MENU DESKTOP
========================================= */

.desktop-menu {

    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 34px;

}


.desktop-menu a {

    position: relative;

    padding: 8px 0;

    font-size: 13px;

    white-space: nowrap;

}


.desktop-menu a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: var(--red);

    transition: width 0.25s ease;

}


.desktop-menu a:hover::after,
.desktop-menu a.active::after {

    width: 100%;

}


/* =========================================
   AREA RISERVATA
========================================= */

.admin-button {

    flex-shrink: 0;

    padding: 13px 19px;

    border: 1px solid var(--red);

    color: var(--red);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;

}


.admin-button:hover {

    background: var(--red);

    color: white;

    transform: translateY(-2px);

}


/* =========================================
   MENU MOBILE
========================================= */

.menu-button {

    width: 44px;
    height: 44px;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 6px;

    background: transparent;

    border: none;

    cursor: pointer;

}


.menu-button span {

    width: 27px;
    height: 1px;

    background: var(--text);

}


.mobile-menu {

    display: none;

}


/* =========================================
   HOME - HERO
========================================= */

.hero {

    position: relative;

    height: 560px;

    overflow: hidden;

}


.hero-image {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            90deg,
            rgba(251,250,246,0.98) 0%,
            rgba(251,250,246,0.90) 35%,
            rgba(251,250,246,0.45) 68%,
            rgba(251,250,246,0.12) 100%
        ),

        url("images/hero.JPG");

    background-size: cover;

    background-position: center 45%;

}


.hero-inner {

    position: relative;

    width: min(1380px, calc(100% - 80px));

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

}


.hero-content {

    max-width: 820px;

}


.hero h1 {

    margin-bottom: 32px;

    font-family: var(--title-font);

    font-size: clamp(62px, 5vw, 84px);

    font-weight: 500;

    line-height: 1.07;

    letter-spacing: -1px;

    color: var(--red-dark);

}


.hero p {

    max-width: 720px;

    font-size: 16px;

    line-height: 1.8;

    color: #2c2925;

}


/* =========================================
   HOME - NUMERI
========================================= */

.numbers {

    padding: 50px 0 90px;

}


.numbers-inner {

    width: min(1260px, calc(100% - 80px));

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

}


.number-item {

    min-height: 220px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.number-item:not(:last-child)::after {

    content: "";

    position: absolute;

    right: 0;

    width: 1px;
    height: 150px;

    background: var(--gold);

}


.number-item strong {

    margin-bottom: 30px;

    font-family: var(--title-font);

    font-size: 54px;

    font-weight: 400;

    color: var(--red);

}


.number-item span {

    font-size: 12px;

    line-height: 1.5;

    letter-spacing: 2.5px;

}


/* =========================================
   HOME - TITOLI
========================================= */

.section-heading {

    text-align: center;

}


.section-heading h2,
.medium-title {

    font-family: var(--title-font);

    font-size: clamp(50px, 4vw, 66px);

    font-weight: 500;

    line-height: 1.12;

    letter-spacing: -0.5px;

}


.medium-title {

    text-align: center;

}


.heading-line {

    width: 80px;
    height: 1px;

    margin: 30px auto;

    background: var(--red);

}


.section-heading p {

    max-width: 820px;

    margin: auto;

    font-size: 15px;

    line-height: 1.8;

    color: var(--text-soft);

}


/* =========================================
   HOME - OFFERTA
========================================= */

.course-boxes {

    margin-top: 75px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 50px;

}


.course-box {

    min-height: 270px;

    padding: 55px;

    background: var(--background-alt);

}


.course-box h3 {

    margin-bottom: 28px;

    font-family: var(--title-font);

    font-size: 25px;

    font-weight: 500;

    color: var(--red);

}


.course-box p {

    font-size: 14px;

    line-height: 1.85;

}


/* =========================================
   HOME - DUE ANIME
========================================= */

.two-worlds {

    padding-top: 35px;

}


.worlds-grid {

    margin-top: 80px;

    display: grid;

    grid-template-columns: 1fr 1fr;

}


.world {

    padding: 0 60px;

}


.world:first-child {

    padding-left: 0;

    border-right: 1px solid var(--line);

}


.world:last-child {

    padding-right: 0;

}


.world h3 {

    margin-bottom: 24px;

    color: var(--red);

    font-size: 14px;

    font-weight: 500;

    letter-spacing: 2.5px;

}


.world p {

    font-size: 14px;

    line-height: 1.85;

}


/* =========================================
   HOME - MATERIE
========================================= */

.subjects {

    margin-top: 120px;

    text-align: center;

}


.subjects-line {

    width: 100%;
    height: 1px;

    margin-bottom: 65px;

    background: var(--line);

}


.subjects-title {

    margin-bottom: 55px;

    display: flex;

    flex-direction: column;

    font-family: var(--title-font);

    font-size: 29px;

    line-height: 1.3;

}


.subjects p {

    max-width: 1050px;

    margin: auto;

    font-size: 13px;

    line-height: 1.85;

}


/* =========================================
   HOME - FOTO
========================================= */

.photo-section {

    width: min(1380px, calc(100% - 80px));

    height: 630px;

    margin: 0 auto 130px;

    overflow: hidden;

}


.photo-section img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


/* =========================================
   HOME - DURATA LEZIONI
========================================= */

.lesson-time {

    padding: 100px 0;

    background: #f1eee5;

}


.lesson-grid {

    max-width: 900px;

    margin: 65px auto 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

}


.lesson {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 15px 50px;

    text-align: center;

}


.lesson:first-child {

    border-right: 1px solid #d9d3c5;

}


.lesson-label {

    margin-bottom: 24px;

    color: var(--red);

    font-size: 12px;

    font-weight: 500;

    letter-spacing: 2px;

}


.duration-values {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 38px;

    flex-wrap: nowrap;

}


.duration-values strong {

    font-family: var(--title-font);

    font-size: 48px;

    font-weight: 400;

    line-height: 1;

    white-space: nowrap;

}


/* =========================================
   HOME - TIMELINE
========================================= */

.timeline {

    margin: 90px 0 120px;

    display: flex;

    align-items: center;

}


.timeline-item {

    width: 280px;

    text-align: center;

}


.timeline-item h3 {

    margin-bottom: 8px;

    color: var(--red);

    font-size: 14px;

    letter-spacing: 1px;

}


.timeline-item p {

    font-size: 12px;

}


.timeline-line {

    flex: 1;

    height: 1px;

    background: var(--gold);

}


/* =========================================
   HOME - CALENDARIO
========================================= */

.calendar-box {

    max-width: 1000px;

    margin: auto;

    padding: 70px 90px;

    text-align: center;

    border: 1px solid #ded4b3;

}


.calendar-box h3 {

    margin-bottom: 30px;

    color: var(--red);

    font-size: 14px;

    letter-spacing: 2.5px;

}


.calendar-box p {

    max-width: 760px;

    margin: auto;

    font-size: 13px;

    line-height: 1.85;

}


.contact-button {

    display: inline-block;

    margin-top: 35px;

    padding: 15px 60px;

    background: var(--red);

    color: white;

    font-size: 12px;

}


/* =========================================
   HOME - SALA
========================================= */

.hall-section {

    position: relative;

    width: min(1380px, calc(100% - 80px));

    height: 570px;

    margin: 40px auto 100px;

    overflow: hidden;

}


.hall-section img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}


.hall-overlay {

    position: absolute;

    inset: 0;

    padding: 42px;

    display: flex;

    align-items: flex-end;

    color: white;

    background:
        linear-gradient(
            transparent 45%,
            rgba(0,0,0,0.62)
        );

}


.hall-overlay span {

    font-size: 12px;

    letter-spacing: 2.5px;

}


/* =========================================
   CHI SIAMO
========================================= */

.about-page {

    background: var(--background);

}


.about-container {

    width: min(1380px, calc(100% - 100px));

    margin: auto;

    display: grid;

    grid-template-columns: 42% 58%;

    column-gap: 90px;

}


/* INTRO */

.about-intro {

    padding: 150px 0 80px;

}


.about-heading h1 {

    font-family: var(--title-font);

    font-size: clamp(64px, 6vw, 92px);

    font-weight: 500;

    line-height: 1;

    letter-spacing: -2px;

}


.about-heading h2 {

    margin-top: 50px;

    color: #c7a23b;

    font-size: 25px;

    font-weight: 500;

    line-height: 1.45;

}


.about-copy {

    padding-top: 5px;

}


.about-copy p {

    max-width: 720px;

    font-size: 16px;

    line-height: 1.75;

}


.about-copy p + p {

    margin-top: 35px;

}


/* STORIA */

.about-story {

    padding: 0 0 115px;

}


.story-left {

    grid-column: 1;

}


.year-label {

    margin-bottom: 35px;

    display: flex;

    align-items: center;

    gap: 17px;

    color: #5f5c58;

    font-size: 13px;

    letter-spacing: 1.6px;

}


.year-line {

    width: 44px;
    height: 1px;

    background: var(--gold);

}


.about-image {

    width: 100%;

    height: 420px;

    overflow: hidden;

}


.about-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

}


.story-link-area {

    grid-column: 2;

    padding-top: 210px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

}


.story-link {

    color: var(--red);

    font-size: 14px;

    text-decoration: underline;

    text-underline-offset: 3px;

}


.story-link span {

    margin-left: 4px;

}


.story-divider {

    width: 100%;
    height: 1px;

    margin-top: 42px;

    background: var(--line);

}


/* VALORI */

.about-values {

    padding: 50px 0 95px;

}


.values-grid {

    grid-template-columns: repeat(3, 1fr);

    column-gap: 70px;

}


.value-card {

    min-height: 250px;

}


.value-icon {

    margin-bottom: 25px;

    color: #c8a840;

    font-family: var(--title-font);

    font-size: 34px;

    line-height: 1;

}


.value-card h3 {

    margin-bottom: 18px;

    font-size: 25px;

    font-weight: 500;

}


.value-card p {

    font-size: 14px;

    line-height: 1.8;

}


/* =========================================
   FOOTER
========================================= */

.footer {

    width: min(1250px, calc(100% - 80px));

    margin: auto;

    padding: 70px 0 40px;

}


.footer-main {

    max-width: 980px;

    margin: auto;

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 60px;

    align-items: start;

}


.footer-logo-wrap {

    display: flex;

    justify-content: center;

}


.footer-logo-link {

    display: block;

    width: 120px;
    height: 120px;

    overflow: hidden;

    border-radius: 50%;

    background: #c90026;

}


.footer-logo {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}


.footer-contacts h3 {

    margin-bottom: 30px;

    font-family: var(--title-font);

    font-size: 25px;

    font-weight: 500;

}


.footer-contacts h4 {

    margin-top: 30px;

    margin-bottom: 8px;

    color: var(--red);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

}


.footer-contacts p {

    margin-bottom: 8px;

    font-size: 13px;

}


.footer-admin {

    display: inline-block;

    margin-top: 30px;

    color: var(--red);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.footer-bottom {

    margin-top: 100px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

}


.footer-bottom p {

    font-size: 10px;

}


.socials {

    display: flex;

    gap: 12px;

}


.socials a {

    width: 24px;
    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #171717;

    color: white;

    font-size: 10px;

}


/* =========================================
   ANIMAZIONI
========================================= */

.reveal {

    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;

}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1150px) {

    .brand-text {

        display: none;

    }


    .desktop-menu {

        gap: 22px;

    }


    .desktop-menu a {

        font-size: 12px;

    }


    .about-container {

        width: calc(100% - 70px);

        column-gap: 55px;

    }


    .about-heading h1 {

        font-size: 65px;

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 850px) {

    body {

        font-size: 15px;

    }


    .container,
    .container.narrow {

        width: calc(100% - 40px);

    }


    .section {

        padding: 80px 0;

    }


    /* HEADER */

    .header-inner {

        width: calc(100% - 40px);

        min-height: 82px;

    }


    .brand-logo-wrapper {

        width: 58px;
        height: 58px;

        flex-basis: 58px;

    }


    .desktop-menu,
    .desktop-admin {

        display: none;

    }


    .menu-button {

        display: flex;

    }


    .mobile-menu {

        position: absolute;

        top: 82px;
        left: 0;

        width: 100%;

        padding: 30px;

        background: var(--background);

        border-top: 1px solid var(--line);

        flex-direction: column;

        gap: 22px;

    }


    .mobile-menu.open {

        display: flex;

    }


    .mobile-admin {

        padding-top: 20px;

        border-top: 1px solid var(--line);

        color: var(--red);

    }


    /* HOME */

    .hero {

        height: 520px;

    }


    .hero-inner {

        width: calc(100% - 40px);

    }


    .hero h1 {

        font-size: 46px;

    }


    .numbers-inner {

        width: calc(100% - 40px);

        grid-template-columns: 1fr 1fr;

    }


    .number-item {

        min-height: 170px;

    }


    .number-item:nth-child(2)::after {

        display: none;

    }


    .course-boxes {

        grid-template-columns: 1fr;

    }


    .worlds-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .world {

        padding: 0;

    }


    .world:first-child {

        padding-bottom: 40px;

        border-right: 0;

        border-bottom: 1px solid var(--line);

    }


    .photo-section {

        width: 100%;

        height: 420px;

    }


    .lesson-grid {

        grid-template-columns: 1fr;

    }


    .lesson:first-child {

        border-right: none;

        border-bottom: 1px solid var(--line);

    }


    .timeline {

        flex-direction: column;

        gap: 28px;

    }


    .timeline-line {

        flex: none;

        width: 1px;
        height: 40px;

    }


    .calendar-box {

        padding: 45px 25px;

    }


    .hall-section {

        width: 100%;

        height: 450px;

    }


    /* CHI SIAMO */

    .about-container {

        width: calc(100% - 40px);

        display: grid;

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .about-intro {

        padding: 90px 0 50px;

    }


    .about-heading h1 {

        font-size: 55px;

    }


    .about-heading h2 {

        margin-top: 30px;

        font-size: 21px;

    }


    .about-copy p {

        font-size: 14px;

    }


    .story-left,
    .story-link-area {

        grid-column: 1;

    }


    .story-link-area {

        padding-top: 0;

        align-items: flex-start;

    }


    .about-image {

        height: 330px;

    }


    .values-grid {

        grid-template-columns: 1fr;

        gap: 60px;

    }


    .value-card {

        min-height: auto;

    }


    /* FOOTER */

    .footer {

        width: calc(100% - 40px);

    }


    .footer-main {

        grid-template-columns: 1fr;

        text-align: center;

    }


    .footer-bottom {

        flex-direction: column;

        align-items: center;

        gap: 30px;

        text-align: center;

    }

}


/* =========================================
   TELEFONI PICCOLI
========================================= */

@media (max-width: 520px) {

    .hero h1 {

        font-size: 39px;

    }


    .section-heading h2,
    .medium-title {

        font-size: 34px;

    }


    .duration-values {

        gap: 22px;

    }


    .duration-values strong {

        font-size: 34px;

    }


    .about-heading h1 {

        font-size: 46px;

    }


    .about-heading h2 {

        font-size: 19px;

    }

}

/* SEO / ACCESSIBILITY: visually hidden semantic content */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
