/* ANEF landing page V3 — mobile first, no external dependencies. */

:root {
    --navy: #07233f;
    --navy-deep: #04182b;
    --navy-mid: #0c416d;
    --sky: #7dd5ff;
    --ice: #e7f5ff;
    --blue: #0969ac;
    --ink: #103552;
    --ink-soft: #4a647e;
    --line: #dcebf5;
    --surface: #f4faff;
    --white: #fff;
    --page: 1190px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    margin: 0;
    color: var(--ink);
    background: white;
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing: antialiased;
}

a,button {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a:focus-visible,button:focus-visible {
    outline: 3px solid #21a8ea;
    outline-offset: 4px;
}

.page-width {
    width: min(calc(100% - 76px),var(--page));
    margin-inline: auto;
}

.icon-definitions {
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

.i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.snowflake-icon {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    left: 14px;
    top: -100px;
    background: var(--sky);
    color: #042342;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 750;
}

.skip-link:focus {
    top: 12px;
}

/* Pale blue header with the original dark ANEF artwork. */

.site-header {
    position: relative;
    z-index: 50;
    background: rgba(225, 243, 253, .975);
    border-bottom: 1px solid #b9def2;
    box-shadow: 0 2px 15px #071e3909;
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.identity {
    display: block;
    flex: 0 1 410px;
    min-width: 0;
    line-height: 0;
}

.identity img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: multiply;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-tools[hidden] {
    display: none;
}

.language-switch {
    display: flex;
    gap: 3px;
    align-items: center;
    padding: 4px;
    border-radius: 100px;
    border: 1px solid #b9dced;
    background: #f5fbff;
}

.language-button {
    border: 0;
    background: transparent;
    min-height: 38px;
    min-width: 45px;
    border-radius: 50px;
    padding: 0 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    color: #526c82;
}

.language-button[aria-pressed="true"] {
    background: var(--navy);
    color: white;
    box-shadow: 0 3px 9px #001a3322;
}

/* Hero: text and illustration are INDEPENDENT grid items; neither can overlap the other. */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background: radial-gradient(ellipse at 78% 36%,#0f507f 0%,transparent 52%),linear-gradient(127deg,#041a30 0%,#072743 65%,#0a385f 100%);
}

.hero-main {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    gap: 36px;
    align-items: center;
    min-height: 655px;
}

.hero-copy {
    z-index: 1;
    padding: 78px 0 83px;
    min-width: 0;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: .21em;
    font-weight: 840;
    color: var(--sky);
}

.eyebrow-line {
    display: block;
    flex: 0 0 29px;
    height: 2px;
    background: var(--sky);
}

.hero-overline {
    margin: 35px 0 15px;
    color: #c8dfef;
    font-size: 13px;
    letter-spacing: .17em;
    font-weight: 760;
}

.hero h1 {
    margin: 0;
    max-width: 730px;
    font-size: clamp(50px,5.7vw,84px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.032em;
    overflow-wrap: normal;
}

.hero h1 span:not([data-content-language]) {
    color: var(--sky);
}

.hero-lead {
    max-width: 540px;
    margin: 30px 0 30px;
    font-size: 19px;
    line-height: 1.74;
    color: #d6e6f2;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 20px;
    min-height: 76px;
    max-width: 100%;
    border-radius: 100px;
    background: var(--sky);
    text-decoration: none;
    color: #08304e;
    box-shadow: 0 11px 30px #01172b33;
    transition: background .15s,transform .15s;
}

@media (hover: hover) and (pointer: fine) {
.hero-action:hover {
    background: #a2e4ff;
    transform: translateY(-2px);
}
}

.hero-action-number {
    font-size: 36px;
    font-weight: 870;
    line-height: 1;
    letter-spacing: -.035em;
}

.hero-action-copy {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 740;
    line-height: 1.3;
    text-align: left;
}

.hero-action .i {
    stroke-width: 2.4;
    margin-left: 9px;
}

.hero-art-wrap {
    position: relative;
    z-index: 0;
    width: 100%;
    min-width: 0;
    align-self: center;
    padding: 8px 0;
}

.hero-art-wrap::before {
    position: absolute;
    content: "";
    inset: 10% 0;
    border-radius: 70px;
    background: #258dce;
    filter: blur(95px);
    opacity: .19;
    pointer-events: none;
}

.hero-art {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 60px #00162b44;
    aspect-ratio: 941/441;
}

.hero-bottom-strip {
    background: #0b3558;
    border-top: 1px solid #ffffff16;
}

.hero-bottom-inner {
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 780;
    color: #bedff2;
}

.hero-bottom-star {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--sky);
    opacity: .98;
}

.hero-bottom-star .snowflake-icon {
    width: 100%;
    height: 100%;
    stroke-width: 1.45;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 24px;
    color: #397da5;
    font-size: 12px;
    letter-spacing: .17em;
    font-weight: 860;
}

.label-sun {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #1394d1;
    line-height: 1;
}

.label-sun .snowflake-icon {
    width: 100%;
    height: 100%;
    stroke-width: 1.6;
}

.intro {
    display: grid;
    grid-template-columns: 1fr .78fr;
    align-items: end;
    gap: 70px;
    padding-block: 110px;
}

.intro h2 {
    margin: 0;
    font-size: clamp(44px,5vw,73px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.07;
}

.intro h2 em {
    font-style: normal;
    color: #1284c0;
}

.intro-right {
    max-width: 450px;
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1.8;
}

.rules-section {
    padding-block: 90px 102px;
    background: var(--surface);
    border-top: 1px solid #e5f2fa;
}

.rules-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 34px;
}

.rules-heading .section-label {
    margin-bottom: 18px;
}

.rules-heading h2 {
    font-size: clamp(41px,5vw,64px);
    font-weight: 850;
    letter-spacing: -.032em;
    line-height: 1.12;
    margin: 0;
}

.rules-description {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 14px 0 0;
}

.expand-all {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: transparent;
    border: 0;
    color: #1c658f;
    font-size: 13px;
    font-weight: 760;
    white-space: nowrap;
    cursor: pointer;
    padding: 13px 0;
}

.expand-all .i {
    width: 17px;
    height: 17px;
    transition: transform .2s;
}

.expand-all.is-expanded .i {
    transform: rotate(180deg);
}

.rules-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    align-items: start;
}

.rule-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #deebf5;
    border-radius: 20px;
    background: #fff;
    transition: border-color .2s,box-shadow .2s;
}

@media (hover: hover) and (pointer: fine) {
.rule-card:hover {
    border-color: #b6d9ed;
    box-shadow: 0 8px 29px #0e416309;
}
}

.rule-card.is-open {
    border-color: #8bc6e8;
    box-shadow: 0 10px 30px #0d3c640b;
}

.rule-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
    padding: 18px 20px;
    min-height: 118px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.rule-icon {
    --illustration-size: 110px;
    width: var(--illustration-size);
    height: var(--illustration-size);
    flex: 0 0 var(--illustration-size);
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
}

@media (min-width: 768px) {
    .rule-icon { --illustration-size: 135px; }
}

@media (min-width: 1081px) {
    .rule-icon { --illustration-size: 160px; }
}

.rule-pictogram {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-copy > .hero-overline:first-child {
    margin-top: 0;
}

.rule-body {
    display: block;
    min-width: 0;
    flex: 1;
}

.rule-number {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 860;
    color: #608fac;
}

.rule-title {
    display: block;
    font-size: 17px;
    line-height: 1.27;
    font-weight: 820;
    letter-spacing: -.01em;
    overflow-wrap: break-word;
}

.rule-chevron {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    margin-left: auto;
    border-radius: 50%;
    background: #eff7ff;
    color: #407ca5;
}

.rule-chevron .i {
    width: 15px;
    height: 15px;
    transition: transform .2s;
}

.rule-card.is-open .rule-chevron {
    background: var(--navy);
    color: white;
}

.rule-card.is-open .rule-chevron .i {
    transform: rotate(180deg);
}

.rule-details {
    padding: 0 24px 27px 113px;
}

.rule-details[hidden] {
    display: none;
}

.rule-details p {
    margin: 0;
    color: #46627d;
    font-size: 16px;
    line-height: 1.77;
}

.rule-details p+p {
    margin-top: 13px;
}

.fulltext-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 28px 0 0;
    color: #6b8496;
    font-size: 12px;
}

.fulltext-note .i {
    width: 16px;
    height: 16px;
    color: #2687bd;
}

.closing {
    background: linear-gradient(112deg,#bfe8ff,#d7f2ff 72%,#e9f8ff);
}

.closing-inner {
    min-height: 385px;
    padding-block: 70px;
    display: grid;
    grid-template-columns: 120px minmax(0,1fr) auto;
    align-items: center;
    gap: 26px;
    position: relative;
}

.closing-symbol {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    color: #07538b;
    transform: translateY(-12px);
}

.closing-symbol .snowflake-icon {
    width: 100%;
    height: 100%;
    stroke-width: 1.35;
}

.closing-kicker {
    font-size: 12px;
    letter-spacing: .19em;
    font-weight: 840;
    color: #316689;
    margin: 0 0 18px;
}

.closing h2 {
    font-size: clamp(40px,4.4vw,66px);
    line-height: 1.08;
    letter-spacing: -.032em;
    font-weight: 850;
    margin: 0;
}

.closing h2 em {
    font-style: normal;
    color: #0c7db5;
}

.closing-copy {
    font-size: 18px;
    color: #416a83;
    margin: 22px 0 0;
}

.back-top {
    display: flex;
    align-items: center;
    gap: 20px;
    align-self: end;
    border-radius: 100px;
    text-decoration: none;
    background: var(--navy);
    color: white;
    padding: 16px 21px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.back-top .i {
    transform: rotate(-90deg);
}

/* Footer legale: fascia scura a tutta larghezza, senza loghi. */

.footer {
    background: var(--navy);
    color: #f4faff;
    border-top: 1px solid #16466e;
}

.footer-inner {
    padding-block: 48px 52px;
    display: block;
}

.footer-side {
    width: 100%;
    max-width: 860px;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    line-height: 1.65;
}

.footer-side p {
    margin: 0;
}

.footer-legal-title {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 850;
    color: var(--sky);
}

.footer-legal-copy {
    white-space: pre-line;
    font-size: clamp(18px,2.1vw,22px);
    font-weight: 730;
    line-height: 1.6;
    color: #fff;
    margin-top: 13px !important;
}

.footer-source {
    margin-top: 20px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 12px;
    color: #b3ccdf;
    line-height: 1.55;
}

@media (max-width:1080px) {
    .hero-main {
        min-height: 590px;
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(49px,5.9vw,69px);
    }

    .closing-inner {
        grid-template-columns: 75px minmax(0,1fr) auto;
    }

    .closing-symbol {
        width: 94px;
        height: 94px;
    }
}

@media (max-width:800px) {
    html {
        scroll-padding-top: 25px;
    }

    .page-width {
        width: calc(100% - 42px);
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: unset;
        padding-block: 15px;
        gap: 15px;
    }

    .identity {
        flex-basis: 300px;
    }

    .header-tools {
        gap: 10px;
    }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 0;
    }

    .hero-copy {
        padding: 65px 0 22px;
    }

    .hero h1 {
        font-size: clamp(49px,7.6vw,75px);
        max-width: 680px;
    }

    .hero-art-wrap {
        padding: 0;
        margin: 0 calc(-1 * (42px / 2));
        width: calc(100% + 42px);
        height: 350px;
        align-self: auto;
    }

    .hero-art-wrap::before {
        display: none;
    }

    .hero-art {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: 63% 46%;
        border-radius: 0;
        box-shadow: none;
        aspect-ratio: auto;
        mask-image: linear-gradient(to bottom,transparent 0%,#000 20%,#000 100%);
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-block: 80px;
    }

    .intro-right {
        font-size: 17px;
    }

    .rules-list {
        grid-template-columns: 1fr;
    }

    .rules-section {
        padding-block: 75px 80px;
    }

    .closing-inner {
        grid-template-columns: 60px 1fr;
        min-height: 350px;
    }

    .closing-symbol {
        align-self: start;
        transform: translateY(3px);
        font-size: 88px;
    }

    .back-top {
        grid-column: 2;
        justify-self: start;
        align-self: start;
    }

    .footer-inner {
        padding-block: 42px 46px;
    }
}

@media (max-width:480px) {
    .page-width {
        width: calc(100% - 36px);
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding-block: 14px 9px;
    }

    .identity {
        width: 100%;
        max-width: 250px;
    }

    .identity img {
        max-height: 46px;
    }

    .header-tools {
        justify-content: flex-end;
    }

    .language-switch {
        padding: 3px;
    }

    .language-button {
        min-height: 32px;
        min-width: 42px;
    }

    .hero-copy {
        padding: 50px 0 20px;
    }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: .18em;
    }

    .hero-overline {
        margin: 29px 0 13px;
        font-size: 11px;
        letter-spacing: .13em;
    }

    .hero h1 {
        font-size: clamp(41px,10.6vw,56px);
        letter-spacing: -.032em;
        line-height: 1.075;
    }

    .hero-lead {
        font-size: 17px;
        line-height: 1.72;
        margin: 24px 0 27px;
    }

    .hero-action {
        gap: 11px;
        min-height: 73px;
        padding: 12px 18px;
    }

    .hero-action-number {
        font-size: 34px;
    }

    .hero-action-copy {
        font-size: 13px;
    }

    .hero-action .i {
        margin-left: 4px;
    }

    .hero-art-wrap {
        margin-inline: -18px;
        width: calc(100% + 36px);
        height: 310px;
    }

    .hero-art {
        object-position: 66% 50%;
    }

    .hero-bottom-inner {
        min-height: 62px;
        font-size: 10px;
        line-height: 1.45;
        letter-spacing: .13em;
    }

    .hero-bottom-star {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .intro {
        padding-block: 72px 77px;
        gap: 20px;
    }

    .section-label {
        font-size: 11px;
        margin-bottom: 18px;
        gap: 11px;
    }

    .label-sun {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .intro h2 {
        font-size: clamp(42px,10.8vw,53px);
    }

    .intro-right {
        font-size: 17px;
        line-height: 1.73;
    }

    .rules-section {
        padding-block: 66px 80px;
    }

    .rules-heading {
        display: block;
        margin-bottom: 19px;
    }

    .rules-heading .section-label {
        margin-bottom: 15px;
    }

    .rules-heading h2 {
        font-size: 43px;
    }

    .rules-description {
        font-size: 16px;
    }

    .expand-all {
        margin-top: 8px;
        font-size: 12px;
    }

    .rules-list {
        gap: 10px;
    }

    .rule-trigger {
        gap: 12px;
        min-height: 103px;
        padding: 14px 12px;
    }


    .rule-title {
        font-size: 16px;
    }

    .rule-number {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .rule-chevron {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .rule-details {
        padding: 0 19px 23px 88px;
    }

    .rule-details p {
        font-size: 15px;
        line-height: 1.72;
    }

    .fulltext-note {
        font-size: 11px;
    }

    .closing-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-block: 65px 60px;
    }

    .closing-symbol {
        position: absolute;
        right: -2px;
        top: 33px;
        width: 68px;
        height: 68px;
        opacity: .18;
    }

    .closing h2 {
        font-size: clamp(40px,10.5vw,55px);
        position: relative;
    }

    .closing-copy {
        font-size: 16px;
        line-height: 1.5;
        max-width: 295px;
    }

    .back-top {
        grid-column: 1;
        margin-top: 20px;
        padding: 14px 18px;
    }

    .footer-inner {
        padding-block: 38px 43px;
    }

    .footer-legal-title {
        font-size: 12px;
    }

    .footer-legal-copy {
        font-size: 19px;
        line-height: 1.6;
    }

    .footer-source {
        font-size: 11px;
        margin-top: 17px !important;
        padding-top: 15px;
    }
}

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

    *,*::before,*::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Mobile header refinement, as applied on the live site. */

@media (max-width: 480px) {
    .header-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-block: 12px;
    }

    .identity {
        flex: 1 1 auto;
        width: auto;
        max-width: 230px;
        min-width: 0;
    }

    .identity img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .header-tools {
        flex: 0 0 auto;
    }

    .language-switch {
        padding: 2px;
        gap: 2px;
    }

    .language-button {
        min-width: 36px;
        min-height: 32px;
        padding: 0 7px;
    }
}

/* Keep hidden translated content out of the layout. */
[hidden] { display: none !important; }

/* Scroll entrance: independent blocks slide in from the left. */
@keyframes entrance-from-left {
    from { opacity: 0; translate: -36px 0; }
    to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .entrance-pending { opacity: 0; }
    .entrance-visible {
        animation: entrance-from-left 650ms cubic-bezier(.22, 1, .36, 1) both;
    }
}

@media print {
    .entrance-pending, .entrance-visible {
        opacity: 1 !important;
        animation: none !important;
        translate: none !important;
    }
}

/* Pixel-sized grid tracks let each column follow its own card heights. */
@media (min-width: 801px) {
    .rules-list.independent-columns {
        grid-auto-rows: 1px;
        row-gap: 0;
        align-items: start;
    }
}

/* Native click handling supports touch, mouse and keyboard without double firing. */
button, a {
    touch-action: manipulation;
}
@media (pointer: coarse) {
    .language-button, .expand-all {
        min-height: 44px;
        min-width: 44px;
    }
}
