/* ============================================================
   ATHENA ACADEMY — HOME PAGE STYLES
============================================================ */

/* ============================================================
   1. VARIABILI & DESIGN SYSTEM
============================================================ */
:root {
    /* ------ COLORI ------ */
    --color-red: #EF4626;
    --color-blue: #5273FF;
    --color-black: #1D1D1D;
    --color-gray: #D9D9D9;
    --color-teal: #71CACD;

    /* ------ TRANSIZIONI ------ */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s ease;

    /* ------ TIPOGRAFIA ------ */
    --font-main: 'Raleway', sans-serif;
    --font-weight-regular: 500;
    --font-weight-bold: 800;
    --letter-spacing-tight: -0.02em;
}

/* ============================================================
   2. RESET & BASE
============================================================ */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.extrabold {
    font-weight: var(--font-weight-bold);
}

/* ============================================================
   3. PROGRESS BAR
============================================================ */
.progressbar {
    position: fixed;
    top: 40px;
    left: clamp(32px, 8vw, 96px);
    right: clamp(32px, 8vw, 96px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - (clamp(32px, 8vw, 96px) * 2));
    margin: 0 auto;
}

.progressbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
}

.progressbar-link {
    font-family: var(--font-main);
    font-size: clamp(12px, 1.8vw, 18px);
    font-weight: var(--font-weight-regular);
    color: var(--color-gray);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-tight);
    cursor: pointer;
    transition: var(--transition-fast);
    flex: 0 0 clamp(80px, 12vw, 140px);
    text-align: center;
    padding: clamp(8px, 1vw, 12px) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progressbar-link:hover,
.progressbar-link:focus,
.progressbar-link:visited {
    color: var(--color-gray);
}

.progressbar-link:focus-visible {
    outline: 2px solid var(--color-gray);
    outline-offset: 3px;
    border-radius: 4px;
    outline-color: transparent;
}

.progressbar-link.active {
    font-weight: var(--font-weight-bold);
}

.progressbar-line {
    flex: 1;
    height: 9px;
    background-color: var(--color-gray);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    min-width: clamp(40px, 8vw, 100px);
}

.progressbar-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-black);
    border-radius: 2px;
}

/* ============================================================
   2. CTA
============================================================ */
.cta {
    position: fixed;
    bottom: 40px;
    left: clamp(16px, 4vw, 48px);
    right: clamp(16px, 4vw, 48px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - (clamp(16px, 4vw, 48px) * 2));
}

.cta-btn {
    font-family: var(--font-main);
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: var(--font-weight-regular);
    padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 48px);
    border-radius: 26px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: var(--letter-spacing-tight);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-block;
    max-width: 380px;
    width: 100%;
}

.btn-outlined {
    border-color: var(--color-gray);
    color: var(--color-gray);
    background: transparent;
}

.btn-solid {
    background-color: var(--color-black);
    color: var(--color-gray);
    border-color: var(--color-black);
}

/* ============================================================
   3. HOME
============================================================ */
.home-content {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--color-red);
    padding: 40px clamp(16px, 4vw, 48px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ============================================================
   4. LOGO + PAYOFF
============================================================ */
.logo-payoff {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    z-index: 50;
    will-change: transform;
}

.main-logo {
    width: clamp(200px, 85vw, 1000px);
}

.main-payoff {
    margin-top: clamp(30px, 5vw, 50px);
    width: 100%;
    max-width: 774px;
    display: flex;
    justify-content: center;
}

.athena-logo,
.level-up-your-skills-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   5. LEVEL UP!
============================================================ */
.title-levelup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(54px, 9vw, 128px);
    line-height: 1em;
    white-space: nowrap;
    color: var(--color-gray);
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    letter-spacing: var(--letter-spacing-tight);
    will-change: transform, opacity;
    z-index: 10;
}

/*** TIMELINE ***/
.horizontal-timeline-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 85%, 1100px);
    height: 120px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.horizontal-line-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-gray);
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-nodes-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.timeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-node.dot-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.node-1 {
    left: 10%;
}

.node-2 {
    left: 36%;
}

.node-3 {
    left: 63%;
}

.node-4 {
    left: 90%;
}

.node-dot {
    width: clamp(24px, 3.5vw, 30px);
    height: clamp(24px, 3.5vw, 30px);
    background-color: var(--color-black);
    border: 3px solid var(--color-gray);
    border-radius: 50%;
    z-index: 2;
}

.timeline-node .node-text {
    position: absolute;
    font-family: var(--font-main);
    font-size: clamp(14px, 2vw, 32px);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.3;
    color: var(--color-gray);
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.timeline-node.text-visible .node-text {
    opacity: 1;
    transform: translateY(0);
}

.pos-top .node-text {
    bottom: 60px;
}

.pos-bottom .node-text {
    top: 60px;
}

/* ============================================================
   6. E DOPO?
============================================================ */
.title-e-dopo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(54px, 9vw, 128px);
    line-height: 1em;
    white-space: nowrap;
    color: var(--color-gray);
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    letter-spacing: var(--letter-spacing-tight);
    will-change: transform, opacity;
    z-index: 10;
}

.subtitle-e-dopo {
    position: absolute;
    top: calc(50% + 150px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: clamp(24px, 3.4vw, 48px);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-gray);
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    white-space: nowrap;
    z-index: 10;
}

.circle-word-wrapper {
    position: relative;
    display: inline-block;
}

.hand-drawn-circle,
.hand-drawn-arrow {
    position: absolute;
    overflow: visible;
    pointer-events: none;
}

.hand-drawn-circle {
    top: 50%;
    left: 50%;
    transform: translate(-48%, -50%);
    width: 120%;
    height: auto;
}

.hand-drawn-arrow {
    top: 70%;
    left: 0%;
    transform: translate(-50%, 0);
    width: 100px;
    z-index: 3;
}

.circle-path {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
}

.arrow-path {
    stroke: var(--color-gray) !important;
    stroke-width: 4px !important;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.paragraph-e-dopo {
    position: absolute;
    top: calc(50% + 305px);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: clamp(22px, 3.4vw, 48px);
    font-weight: var(--font-weight-regular);
    line-height: 1.25;
    letter-spacing: var(--letter-spacing-tight);
    text-align: center;
    color: var(--color-gray);
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    white-space: nowrap;
}

/* ============================================================
   7. SERVIZI
============================================================ */
.title-servizi {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(28px, 5.4vw, 69px);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1em;
    white-space: nowrap;
    color: var(--color-gray);
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 10;
}

.floating-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 20;
}

.floating-elements-container {
    position: relative;
    width: clamp(280px, 100%, 750px);
    height: clamp(280px, 56vw, 420px);
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.float-group {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    width: var(--fg-width);
    top: var(--fg-top);
    left: var(--fg-left);
    right: var(--fg-right);
    bottom: var(--fg-bottom);
    z-index: var(--fg-z);
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
    transition: z-index 0.2s ease;

}

.float-group.is-visible {
    pointer-events: auto;
}

.float-group:not(.is-visible),
.float-group:not(.is-visible) .float-item,
.float-group:not(.is-visible) .float-dot,
.float-group:not(.is-visible) .service-tooltip {
    pointer-events: none !important;
}

.float-group:hover,
.float-group:focus-within {
    z-index: 30 !important;
}

.float-group .float-item {
    width: 100%;
}

.float-item {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.float-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.float-dot-wrapper {
    position: absolute;
    width: 23px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.float-dot {
    width: 100%;
    height: 100%;
    background-color: var(--color-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.float-dot:hover {
    transform: scale(1.25);
}

.group-rocket .float-dot-wrapper {
    top: 40%;
    left: -50px;
}

.group-face .float-dot-wrapper {
    top: -15px;
    right: 20px;
}

.group-megaphone .float-dot-wrapper {
    top: 35px;
    right: -30px;
}

.group-laptop .float-dot-wrapper {
    bottom: 60%;
    left: -10px;
}

.group-video .float-dot-wrapper {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.group-document .float-dot-wrapper {
    bottom: 25%;
    right: -15px;
}

.service-tooltip {
    position: absolute;
    width: 240px;
    min-height: 60px;
    height: auto;
    padding: 12px 16px;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--color-gray);
    color: var(--color-black);
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: auto;
    z-index: 30;
}

.group-rocket .service-tooltip {
    bottom: 60%;
    right: -50%;
}

.group-face .service-tooltip {
    bottom: 60%;
    right: -50%;
}

.group-megaphone .service-tooltip {
    bottom: 60%;
    left: -50%;
}

.group-laptop .service-tooltip {
    bottom: 60%;
    right: -50%;
}

.group-video .service-tooltip {
    top: 60%;
    left: -50%;
}

.group-document .service-tooltip {
    left: -50%;
    top: 60%;
}

.float-group:hover .service-tooltip,
.float-group:focus-within .service-tooltip {
    opacity: 1;
    visibility: visible;
}

.float-item,
.float-dot,
.service-tooltip {
    pointer-events: none;
}

.float-group.is-visible .float-item,
.float-group.is-visible .float-dot,
.float-group.is-visible .service-tooltip {
    pointer-events: auto;
}

/* ============================================================
   8. MODAL SERVIZI
============================================================ */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
}

.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(239, 70, 38, 0.90);
    backdrop-filter: blur(8px);
}

.modal-close-btn {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--color-gray);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1010;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn:hover {
    transform: translateX(-50%) scale(1.12);
}

.modal-close-btn img {
    width: 24px;
    height: 24px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
    padding: 10px;
}

.modal-prev {
    left: 40px;
}

.modal-next {
    right: 40px;
    flex-direction: row-reverse;
}

.modal-nav-arrow {
    width: 24px;
    height: auto;
    transition: transform 0.25s ease;
}

.modal-prev:hover .modal-nav-arrow {
    transform: translateX(-5px);
}

.modal-next:hover .modal-nav-arrow {
    transform: translateX(5px);
}

.modal-nav-badge {
    width: 56px;
    height: 56px;
    background-color: var(--color-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease;
}

.modal-nav:hover .modal-nav-badge {
    transform: scale(1.08);
}

.modal-nav-badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.modal-content-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 5;
    --icon-width: 300px;
    --icon-height: auto;
    --icon-offset-x: -75px;
    --icon-offset-y: -10%;
}

.modal-outside-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
    pointer-events: none;
    margin-right: var(--icon-offset-x);
    margin-bottom: var(--icon-offset-y);
}

.modal-hero-illustration {
    width: var(--icon-width);
    height: var(--icon-height);
    object-fit: contain;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.15));
}

.modal-card {
    background-color: var(--color-gray);
    border-radius: 24px;
    padding: 35px 60px 35px 90px;
    width: 100%;
    max-width: 600px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.modal-title {
    font-family: var(--font-main);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    margin-bottom: 16px;
    line-height: 1.2;
}

.modal-description {
    font-family: var(--font-main);
    font-size: clamp(14px, 1.5vw, 24px);
    font-weight: var(--font-weight-regular);
    color: var(--color-black);
    line-height: 1.5;
    margin: 0;
}

.modal-outside-illustration.rocket {
    --icon-offset-y: -10%;
}

.modal-outside-illustration.rocket img {
    --icon-width: 375px;
}

.modal-outside-illustration.face {
    --icon-offset-y: -15%;
}

.modal-outside-illustration.face img {
    --icon-offset-x: -65px;
    --icon-width: 370px;
}

.modal-outside-illustration.megaphone {
    --icon-offset-y: -15%;
    --icon-offset-x: -65px;
}

.modal-outside-illustration.megaphone img {
    --icon-width: 415px;
}

.modal-outside-illustration.laptop {
    --icon-offset-y: -10%;
    --icon-offset-x: -65px;
}

.modal-outside-illustration.laptop img {
    --icon-width: 445px;
}

.modal-outside-illustration.video {
    --icon-offset-y: -15%;
    --icon-offset-x: -65px;
}

.modal-outside-illustration.video img {
    --icon-width: 405px;
}

.modal-outside-illustration.document {
    --icon-offset-y: -15%;
    --icon-offset-x: -65px;
}

.modal-outside-illustration.document img {
    --icon-width: 390px;
}

/* ============================================================
   9. POWER SKILLS
============================================================ */
.power-skills-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(28px, 5.4vw, 69px);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1em;
    white-space: nowrap;
    color: var(--color-gray);
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 10;
}

.power-skills-description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: clamp(14px, 1.5vw, 24px);
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    letter-spacing: var(--letter-spacing-tight);
    text-align: center;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.power-skills-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.power-skills-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    width: 100%;
    flex-wrap: wrap;
    opacity: 0;
}

.power-skill-word {
    font-family: var(--font-main);
    font-size: clamp(16px, 2.8vw, 36px);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-gray);
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    overflow: hidden;
    --reveal-height: 100%;
}

.power-skill-word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--reveal-height);
    background-color: var(--color-red);
    will-change: height;
}

.power-skills-container:not(.is-visible) {
    pointer-events: none !important;
}

.power-skills-row:not(.is-visible) {
    pointer-events: none !important;
}

.power-skills-second-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: clamp(24px, 4vw, 30px);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1em;
    color: var(--color-gray);
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 10;
}

.power-skills-cloud-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.power-skills-cloud-dot {
    width: clamp(20px, 2.5vw, 35px);
    height: clamp(20px, 2.5vw, 35px);
    background-color: var(--color-gray);
    border-radius: 50%;
    margin: 0 auto;
    z-index: 10;
    opacity: 0;
    will-change: transform, opacity;
}

.power-skills-cloud {
    background-color: var(--color-gray);
    border-radius: 13px;
    padding: clamp(20px, 3vw, 25px) clamp(50px, 8vw, 80px);
    width: 100%;
    max-width: 850px;
    opacity: 0;
    will-change: transform, opacity;
}

.power-skills-cloud-text {
    font-family: var(--font-main);
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text-dark);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.power-skills-cloud-text strong {
    font-weight: var(--font-weight-bold);
}

/* ============================================================
   10. SARDEGNA
============================================================ */
.sardegna-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
}

.sardegna-icon {
    max-width: 335px;
    width: 100%;
    height: auto;
    display: block;
}

.sardegna-main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: clamp(35px, 5vw, 56px);
    font-weight: var(--font-weight-medium);
    text-align: center;
    color: var(--color-gray);
    width: 100%;
    margin: 0;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.sardegna-final-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    z-index: 20;
    opacity: 0;
    text-align: center;
    pointer-events: none;
}

.sardegna-final-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-size: clamp(20px, 3.5vw, 40px);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-gray);
    text-align: center;
    line-height: 1.25;
    padding: 0 20px;
    margin: 0;
    width: 100%;
    max-width: 1100px;
    z-index: 20;
    pointer-events: none;
}

.sardegna-final-text span {
    font-family: var(--font-main);
    font-size: clamp(54px, 9vw, 128px);
    font-weight: var(--font-weight-bold);
    display: block;
    line-height: 1.0;
    margin-top: 0;
}

.sardegna-small-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 0;
}

.sardegna-small-icon {
    width: 100%;
    max-width: 112px;
    height: auto;
    display: block;
}

/* ============================================================
   11. MA
============================================================ */

.ma-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(80px, 18vw, 200px);
    line-height: 1;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-blue);
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    will-change: transform, opacity;
}

.ma-final-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.ma-subtext-top,
.ma-subtext-bottom {
    font-family: var(--font-main);
    font-size: clamp(20px, 3.5vw, 40px);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-blue);
    text-align: center;
    line-height: 1.25;
    margin: 0;
    width: 100%;
}

.ma-main-title {
    font-family: var(--font-main);
    font-size: clamp(60px, 8vw, 100px);
    font-weight: var(--font-weight-bold);
    text-align: center;
    color: var(--color-blue);
    display: block;
    line-height: 1;
    margin: 10px 0 0 0;
}

.ma-second-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(28px, 5.4vw, 69px);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1;
    white-space: nowrap;
    color: var(--color-blue);
    text-align: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 10;
}

.ma-reasons-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    opacity: 0;
    height: auto;
}

.ma-reasons-row {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.ma-reasons-row-2 {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.ma-reason-card {
    position: relative;
    flex: 0 0 33.3%;
    width: 33.3%;
    /*max-width: 350px;*/
    height: auto;
    border-radius: 33px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    color: var(--color-gray);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    will-change: transform, opacity;
}

.ma-reason-card.is-blue {
    background: var(--color-blue);
}

.ma-reason-card.is-orange {
    background: var(--color-red);
}

.ma-reason-card.is-teal {
    background: var(--color-teal);
}

.ma-reason-card-hidden {
    position: relative;
    flex: 0 0 0px;
    width: 0px;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: stretch;
    border: 3px solid var(--color-blue);
    border-radius: 33px;
    background: transparent;
    overflow: hidden;
    will-change: flex-basis, width, border-width, transform, opacity;
    box-sizing: border-box;
    color: var(--color-gray);
    padding: 0px;
    margin-right: -24px;
    opacity: 0;
    transform: scale(0.9);
}

.ma-reason-card-hidden-inner {
    position: relative;
    width: 100%;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    box-sizing: border-box;
    color: var(--color-blue);
}

.ma-reason-card h4,
.ma-reason-card-hidden-inner h4 {
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: clamp(14px, 2vw, 32px);
    text-align: center;
    letter-spacing: var(--letter-spacing-tight);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.ma-reason-card p,
.ma-reason-card-hidden-inner p {
    font-family: var(--font-main);
    font-weight: var(--font-weight-regular);
    font-size: clamp(14px, 1.5vw, 20px);
    text-align: center;
    letter-spacing: var(--letter-spacing-tight);
    margin: 0;
    line-height: 1.3;
}

/* ============================================================
   12. STUDENTE
============================================================ */
.studente-faq-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 200px;
    opacity: 0;
}

.studente-faq-title-col {
    flex: 1;
}

.studente-faq-title {
    font-family: var(--font-main);
    font-size: clamp(28px, 5.4vw, 69px);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-black);
    margin: 0;
}

.studente-faq-accordion-col {
    flex: 1.2;
}

.studente-faq-item {
    border-bottom: 4px solid var(--color-black);
    margin-bottom: 10px;
}

.studente-faq-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 24px 0 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: clamp(14px, 2vw, 32px);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-black);
    transition: color 0.3s ease;
}

.studente-faq-header:hover {
    opacity: 0.75;
}

.studente-faq-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.studente-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
    font-family: var(--font-main);
    font-size: clamp(12px, 1.8vw, 18px);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    color: var(--color-black);
}

.studente-faq-content b {
    font-weight: var(--font-weight-bold);
}

.studente-faq-item.active .studente-faq-icon {
    transform: rotate(180deg);
}

.studente-faq-item.active .studente-faq-content {
    padding-bottom: 20px;
}

/* Container principale Sezione Form */
.studente-form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.studente-form-container.is-active {
    pointer-events: auto;
}

/* Titolo Studente */
.studente-form-title {
    font-family: var(--font-main);
    font-size: 69px;
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-black);
    line-height: 1.15;
    margin: 0;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    text-align: left;
    transform-origin: left top;
    will-change: flex-basis, width, font-size;
}

.studente-form-title.is-shrunk {
    font-size: 40px;
}

/* Form */
.studente-candidate-form {
    flex: 0 0 55%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transform: translateX(60px);
}

.studente-candidate-form .form-row {
    display: flex;
    gap: 18px;
}

.studente-candidate-form .form-group {
    flex: 1;
}

.studente-candidate-form .form-group-full {
    width: 100%;
}

.studente-candidate-form input[type="text"],
.studente-candidate-form input[type="email"],
.studente-candidate-form input[type="tel"],
.studente-candidate-form textarea {
    width: 100%;
    padding: 18px 22px;
    border-radius: 12px;
    border: none;
    background: var(--color-gray);
    color: var(--color-black);
    font-family: var(--font-main);
    font-size: 16px;
    font-style: italic;
    outline: none;
    resize: none;
    box-sizing: border-box;
}

.studente-candidate-form input::placeholder,
.studente-candidate-form textarea::placeholder {
    color: rgba(29, 29, 29, 0.55);
    font-style: italic;
}

.form-label {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    margin: 4px 0 0 0;
}

.form-label em {
    font-style: italic;
    font-weight: var(--font-weight-regular);
}

.course-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.course-pill {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: var(--font-weight-regular);
    padding: 12px 22px;
    border-radius: 24px;
    border: 2px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
    transition: var(--transition-fast);
}

.course-pill.is-selected {
    background: var(--color-black);
    color: var(--color-gray);
}

.attachments-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.attachment-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    border-radius: 24px;
    background: var(--color-gray);
    color: var(--color-black);
    font-family: var(--font-main);
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    cursor: pointer;
}

.attachment-icon {
    width: 16px;
    height: 16px;
    padding: 6px;
    background: var(--color-black);
    border-radius: 50%;
    box-sizing: content-box;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-main);
    font-size: 13px;
    font-style: italic;
    color: var(--color-black);
    line-height: 1.4;
    cursor: pointer;
}

.privacy-checkbox input {
    margin-top: 4px;
    accent-color: var(--color-black);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-red);
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: var(--font-weight-regular);
    gap: 12px;
    width: 100%;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
}

.btn-submit-icon {
    width: 18px;
    height: 18px;
}

/* ============================================================
   13. AZIENDA
============================================================ */
.azienda-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.azienda-container.is-active {
    pointer-events: auto;
}

.azienda-title {
    font-family: var(--font-main);
    font-size: clamp(24px, 3.4vw, 48px);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.25;
    color: var(--color-gray);
    margin: 0 0 40px 0;
}

.azienda-title strong {
    font-weight: var(--font-weight-bold);
}

.azienda-cta-btn {
    font-family: var(--font-main);
    font-size: clamp(14px, 1.8vw, 24px);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-tight);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-black);
    background-color: var(--color-gray);
    padding: clamp(14px, 2vw, 15px) clamp(40px, 6vw, 100px);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    will-change: transform, opacity;
}

/* ============================================================
   14. AZIENDA FAQ
============================================================ */
.azienda-faq-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 75px;
    opacity: 0;
}

.azienda-faq-title-col {
    flex: 1;
    align-items: flex-start;
}

.azienda-faq-title {
    font-family: var(--font-main);
    font-size: clamp(28px, 5.4vw, 69px);
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-red);
    margin: 0;
}

.azienda-faq-accordion-col {
    flex: 1.2;
}

.azienda-faq-item {
    border-bottom: 4px solid var(--color-red);
    margin-bottom: 10px;
    padding-bottom: 16px;
}

.azienda-faq-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 24px 0 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
    font-size: clamp(14px, 2vw, 30px);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-red);
    transition: color 0.3s ease;
}

.azienda-faq-header:hover {
    opacity: 0.75;
}

.azienda-faq-icon {
    width: 32px;
    height: 32px;
    color: var(--color-red);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.azienda-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
    font-family: var(--font-main);
    font-size: clamp(12px, 1.8vw, 18px);
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    color: var(--color-black);
}

.azienda-faq-content p {
    margin: 0;
    padding-bottom: 8px;
}

.azienda-faq-item.active .azienda-faq-icon {
    transform: rotate(180deg);
}

.azienda-faq-item.active .azienda-faq-content {
    padding-bottom: 20px;
}

/* ============================================================
   15. FOOTER / CONTATTI FINALI
============================================================ */
.footer-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 10;
}

.footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0;
}

.footer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-main);
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 30px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.footer-action-outlined {
    border: 2px solid var(--color-red);
    color: var(--color-red);
    background: transparent;
}

.footer-action-outlined:hover {
    background: rgba(239, 70, 38, 0.08);
}

.footer-action-solid {
    background-color: var(--color-black);
    color: var(--color-gray);
    border: 2px solid var(--color-black);
}

.footer-action-solid:hover {
    opacity: 0.85;
}

.footer-action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-action-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-action-icon-inner {
    width: 100%;
    height: 100%;
    color: var(--color-gray);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-family: var(--font-main);
    font-size: clamp(12px, 1.2vw, 15px);
    color: var(--color-black);
}

.footer-copyright p {
    margin: 0 0 4px 0;
}

.footer-privacy-link {
    color: var(--color-black);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
}

.footer-social-icon {
    width: 26px;
    height: 26px;
}