/* Terzo capitolo: testi sempre disponibili, illustrazioni indipendenti dalla hero. */
.mga-features { position: relative; z-index: 3; overflow: clip; background: #fff; color: var(--ink); }
.features-intro { position: relative; display: flex; align-items: center; min-height: min(92svh, 880px); padding: clamp(100px, 13vw, 210px) var(--gutter); }
.features-intro-copy { position: relative; z-index: 1; max-width: 1030px; }
.features-intro h2 { max-width: 1050px; margin: 0; font-size: clamp(50px, 7.5vw, 142px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.features-intro h2 span, .feature-copy h3 span { color: var(--pink); }
.features-intro p { max-width: 560px; margin: clamp(36px, 4.5vw, 70px) 0 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; letter-spacing: -.015em; }
.features-intro-line { position: absolute; right: -4%; bottom: -12%; width: min(45vw, 700px); pointer-events: none; }
.features-intro-line path, .features-close svg path { stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.feature-area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 135px); align-items: start; padding: clamp(110px, 12vw, 190px) var(--gutter); border-top: 1px solid #deded8; }
.feature-area-reverse .feature-copy { grid-column: 2; grid-row: 1; }
.feature-area-reverse .feature-art { grid-column: 1; grid-row: 1; }
.feature-copy { max-width: 620px; }
.feature-copy h3 { max-width: 620px; margin: 0; font-size: clamp(42px, 5vw, 82px); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; }
.feature-lead { max-width: 540px; margin-top: clamp(32px, 3.5vw, 52px); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; letter-spacing: -.015em; }
.feature-lead p { margin: 0; }
.feature-lead p + p { margin-top: 1em; }
.feature-details { margin-top: clamp(58px, 6vw, 90px); }
.feature-details section { padding: 25px 0 27px; border-top: 1px solid #c9c9c3; }
.feature-details h4 { margin: 0 0 10px; font-size: clamp(18px, 1.55vw, 23px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
.feature-details p { max-width: 510px; margin: 0; font-size: 16px; line-height: 1.55; }
.feature-art { width: 100%; max-width: 650px; justify-self: center; pointer-events: none; }
.story-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.story-ink { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-path { stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.story-node { fill: #fff; stroke: var(--pink); stroke-width: 2; }
.story-accent, .story-highlight { stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-drawing text { fill: var(--ink); font: 700 10px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 1.5px; }
.story-drawing .story-accent-text { fill: #b80f3b; }
.features-close { position: relative; min-height: min(90svh, 800px); display: flex; align-items: center; padding: clamp(140px, 16vw, 240px) var(--gutter); border-top: 1px solid #deded8; }
.features-close p { position: relative; z-index: 1; max-width: 1050px; margin: 0; font-size: clamp(38px, 5.6vw, 96px); line-height: 1.06; letter-spacing: -.05em; font-weight: 600; }
.features-close p span { color: #666660; }
.features-close svg { position: absolute; right: -4%; bottom: -1px; width: min(45vw, 700px); pointer-events: none; }
@media (min-width: 901px) and (min-height: 740px) { .feature-art { position: sticky; top: 8svh; } }
@media (max-width: 900px) and (min-width: 701px) {
    .feature-area { gap: 36px; }
    .feature-copy h3 { font-size: clamp(42px, 5.4vw, 58px); }
    .feature-details p { font-size: 15px; }
    .story-drawing text { font-size: 17px; letter-spacing: 1px; }
}
@media (max-width: 700px) {
    .features-intro { min-height: 0; padding-top: 105px; padding-bottom: 145px; }
    .features-intro h2 { font-size: clamp(43px, 11vw, 68px); }
    .features-intro p { margin-top: 30px; font-size: 17px; }
    .features-intro-line { width: 67vw; right: -13%; bottom: -6%; }
    .feature-area { display: flex; flex-direction: column; gap: 0; padding: 90px var(--gutter) 110px; }
    .feature-copy { display: contents; }
    .feature-copy h3 { order: 0; }
    .feature-lead { order: 1; }
    .feature-details { order: 3; }
    .feature-copy h3 { font-size: clamp(40px, 10vw, 64px); }
    .feature-lead { margin-top: 28px; font-size: 17px; }
    .feature-details { margin-top: 46px; }
    .feature-details section { padding: 22px 0 24px; }
    .feature-details h4 { font-size: 19px; }
    .feature-details p { font-size: 15px; }
    .feature-art { order: 2; width: min(100%, 450px); margin: 35px auto 0; }
    .story-drawing text { font-size: 20px; letter-spacing: 1px; }
    .features-close { min-height: 0; align-items: flex-start; padding: 110px var(--gutter) 230px; }
    .features-close p { font-size: clamp(37px, 9.5vw, 60px); }
    .features-close svg { width: 75vw; right: -12%; }
}

/* Il percorso della rete si sviluppa in verticale senza fissare la pagina. */
.feature-area .feature-art-rete { position: relative; top: auto; max-width: 560px; }
.rete-mobile { display: none; }
.rete-drawing .rete-trace { stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.rete-drawing .rete-referral-line, .rete-drawing .rete-claim-line { stroke: var(--pink); stroke-width: 2.5; }
.rete-drawing .rete-path-node { fill: #fff; stroke: var(--green); stroke-width: 3; }
.rete-drawing .rete-euro { stroke-width: 3; }
.rete-drawing .rete-table-heading { fill: var(--ink); font: 600 12px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.rete-drawing .rete-link { stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.rete-drawing .rete-reminder { stroke: var(--pink); stroke-width: 2; }
.rete-drawing .rete-label { fill: var(--ink); font: 600 17px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.rete-drawing .rete-label-accent { fill: #b80f3b; }
.rete-drawing .rete-note { fill: #4d4d49; font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
@media (max-width: 1100px) {
    .rete-desktop { display: none; }
    .rete-mobile { display: block; }
    .rete-drawing .rete-label { font-size: 17px; }
    .rete-drawing .rete-note { font-size: 15px; }
}

/* La scena operativa della MGA usa un disegno dedicato per ciascun formato. */
.feature-area .feature-art-operation { position: relative; top: auto; max-width: 560px; }
.operation-mobile { display: none; }
.operation-drawing .operation-thread { stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.operation-drawing .operation-dialogue-thread { stroke-width: 3; }
.operation-drawing .operation-ink { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.operation-drawing .operation-accent { stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.operation-drawing .operation-node { fill: #fff; stroke: var(--green); stroke-width: 3; }
.operation-drawing .operation-bubble { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.operation-conversation { display: none; }
.operation-drawing .operation-speech { fill: var(--ink); font: 500 19px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.operation-drawing .operation-card-label { fill: var(--ink); font: 600 16px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.operation-drawing .operation-title { fill: var(--ink); font: 600 25px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.02em; }
.operation-drawing .operation-label { fill: var(--ink); font: 600 16px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.operation-drawing .operation-small { fill: #4d4d49; font: 16px "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
.operation-drawing .operation-dot { fill: #fff; stroke: var(--pink); stroke-width: 2; }
@media (max-width: 900px) {
    .operation-desktop { display: none; }
    .operation-mobile { display: block; }
    .operation-drawing .operation-title { font-size: 24px; }
    .operation-drawing .operation-label { font-size: 16px; }
    .operation-drawing .operation-small { font-size: 16px; }
    .operation-drawing .operation-speech { font-size: 18px; }
    .operation-drawing .operation-card-label { font-size: 16px; }
}

/* Il testo accompagna la scena quando la finestra permette di leggerlo per intero. */
@media (min-width: 701px) {
    .feature-area-operation .feature-copy { position: sticky; top: min(3svh, calc(100svh - 1100px)); }
}

/* La prima scena resta in vista mentre lo scroll segue il dialogo. */
.feature-art-operation.operation-motion .operation-stage { padding-bottom: clamp(600px, 100svh, 1000px); }

/* La linea accompagna il passaggio dalla chiusura al contatto. */
.mga-contact { position: relative; overflow: clip; background: #000; color: #fff; padding: clamp(160px, 16vw, 245px) var(--gutter) 0; }
.contact-thread { position: absolute; top: -1px; right: -4%; width: min(45vw, 700px); pointer-events: none; }
.contact-thread path { stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.contact-thread circle { fill: var(--green); }
.contact-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(60px, 8vw, 150px); align-items: start; }
.contact-intro { max-width: 650px; }
.contact-intro h2 { margin: 0; font-size: clamp(52px, 6.6vw, 112px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.contact-intro p { max-width: 530px; margin: clamp(30px, 3.5vw, 52px) 0 0; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.55; letter-spacing: -.015em; }
.contact-intro .contact-invitation { max-width: 450px; margin-top: 32px; color: #fff; font-weight: 600; }
.contact-form-area { max-width: 680px; width: 100%; }
.contact-form-status { margin: 0 0 32px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .55); font-size: 15px; line-height: 1.55; }
.contact-form-status:empty { display: none; }
.contact-form-status a, .contact-details a { text-underline-offset: 4px; }
.mga-contact a:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.contact-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.contact-field { display: flex; flex-direction: column; gap: 9px; }
.contact-field-message { grid-column: 1 / -1; }
.contact-field-spam { max-width: 220px; }
.contact-field label { font-size: 14px; line-height: 1.35; font-weight: 600; }
.contact-field label span { color: #fff; font-weight: 400; }
.contact-field input, .contact-field textarea { display: block; width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #aaa9a2; border-radius: 0; background: #f7f7f4; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.45; opacity: 1; -webkit-text-fill-color: var(--ink); }
.contact-field textarea { min-height: 135px; resize: vertical; }
.contact-field textarea::placeholder { color: #64645e; opacity: 1; -webkit-text-fill-color: #64645e; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-color: var(--ink); }
.contact-field input[aria-invalid="true"], .contact-field textarea[aria-invalid="true"] { border: 3px solid #971640; outline: 2px solid #fff; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.contact-privacy { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 28px 0; color: #fff; font-size: 14px; line-height: 1.5; }
.contact-privacy input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--green); }
.contact-privacy label { flex: 1; min-width: 220px; }
.contact-privacy a, .contact-direct a { text-underline-offset: 4px; }
.contact-privacy input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.contact-error { width: 100%; margin: 0; color: #fff; font-size: 14px; line-height: 1.4; }
.contact-privacy input[aria-invalid="true"] { outline: 2px solid #ffb8c9; outline-offset: 2px; }
.contact-direct { margin: 24px 0 0; font-size: 14px; line-height: 1.5; }
.contact-form button { display: inline-flex; min-height: 55px; align-items: center; gap: 38px; padding: 15px 22px; border: 1px solid var(--ink); background: var(--green); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; }
.contact-form button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.contact-form button:disabled { border-style: dashed; cursor: not-allowed; }
.contact-form button span { font-size: 19px; }
.contact-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .48fr); gap: clamp(55px, 8vw, 150px); margin-top: clamp(130px, 15vw, 240px); padding: clamp(42px, 6vw, 80px) 0 clamp(55px, 7vw, 100px); border-top: 1px solid rgba(255, 255, 255, .55); }
.contact-logo { display: block; width: 118px; height: auto; margin-bottom: 38px; filter: brightness(0) invert(1); }
.contact-about { max-width: 820px; margin: 0; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.35; letter-spacing: -.025em; }
.contact-about p { margin: 0; }
.contact-about p + p { margin-top: 1em; }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.5; font-style: normal; }
.contact-details span { margin-top: 8px; }
.contact-legal-footer { grid-column: 1 / -1; }
.contact-legal-info { margin: 0 0 14px; color: #c6c6c6; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.contact-legal { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 16px 28px; font-size: 14px; line-height: 1.5; }
.contact-legal a { text-underline-offset: 4px; }

/* Componenti di consenso e preferenze cookie del progetto. */
#consenso-cookie { position: fixed; z-index: 100; right: auto; bottom: 20px; left: 20px; width: min(600px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow-y: auto; padding: 24px; color: #fff; background: #151515; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
#consenso-cookie .cookie-dialog { display: flex; align-items: flex-start; flex-direction: column; gap: 18px; }
#consenso-cookie .testo { width: 100%; font-size: 14px; line-height: 1.5; }
#consenso-cookie .testo p { margin: 0; }
#consenso-cookie .cookie-summary { padding-right: 24px; }
#consenso-cookie .cookie-details { display: inline-block; margin-top: 10px; vertical-align: top; }
#consenso-cookie .cookie-details[open] { display: block; }
#consenso-cookie .cookie-details summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
#consenso-cookie .cookie-details .descrizione { padding-top: 10px; }
#consenso-cookie a { color: inherit; text-underline-offset: 4px; }
#consenso-cookie .maggiori-info { display: inline-block; margin: 10px 0 0 20px; vertical-align: top; }
#consenso-cookie .cookie-details[open] + .maggiori-info { margin-left: 0; }
#consenso-cookie .comandi { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
#consenso-cookie .comandi .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #fff; background: transparent; color: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
#consenso-cookie .comandi [data-accetta="1"] { border-color: var(--green); background: var(--green); color: #151515; }
#consenso-cookie .chiudi { position: absolute; top: 15px; right: 20px; font-size: 25px; line-height: 1; }
#consenso-cookie .chiudi a { text-decoration: none; }
#consenso-cookie :focus-visible, #barra-gestione-cookie:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
#consenso-cookie .chiudi a:focus-visible { outline: none;}
#consenso-cookie .visually-hidden, #barra-gestione-cookie .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.cookie-error { margin: 12px 0 0; font-size: 14px; }
#barra-gestione-cookie { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #777; background: #151515; color: #fff; font-size: 12px; line-height: 1.3; text-decoration: none; }
#barra-gestione-cookie .progress { height: 3px; margin-top: 6px; background: #777; }
#barra-gestione-cookie .progress-bar { height: 100%; background: var(--green); }
#barra-gestione-cookie .numero { color: var(--green); font-size: 16px; }
#consenso-cookie ~ #barra-gestione-cookie { display: none; }
@media (max-width: 700px) {
    #consenso-cookie { bottom: 12px; left: 12px; width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 20px; }
    #consenso-cookie .chiudi { top: 12px; right: 16px; }
    #consenso-cookie .comandi { flex-shrink: 1; }
    #barra-gestione-cookie { position: relative; right: auto; bottom: auto; width: max-content; margin: 12px var(--gutter) 12px auto; }
}
@media (max-width: 900px) {
    .contact-main { grid-template-columns: 1fr; gap: 60px; }
    .contact-intro { max-width: 720px; }
    .contact-form-area { max-width: 720px; }
}
@media (max-width: 700px) {
    .mga-contact { padding-top: 125px; }
    .contact-thread { width: 75vw; right: -12%; }
    .contact-intro h2 { font-size: clamp(46px, 10.5vw, 70px); }
    .contact-intro p { font-size: 17px; }
    .contact-main { gap: 48px; }
    .contact-fields { grid-template-columns: 1fr; gap: 22px; }
    .contact-field-message { grid-column: auto; }
    .contact-footer { grid-template-columns: 1fr; gap: 32px; margin-top: 120px; }
}
