/* Ramo e Quota: fascia indaco in alto, linguette bianche, carosello su fondo grigio, box chiari e footer indaco */

:root {
    --ink: #22095c;
    --sky: #00d4f5;
    --text: #4f5257;
    --mist: #eceff1;
    --gap: 20px;
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: "Commissioner", Arial, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.55;
    overflow-x: clip;
}

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

a {
    color: var(--ink);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 400;
    line-height: 1.3;
    text-wrap: balance;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 50;
    padding: 10px 16px;
    background: #fff;
}

.skip-link:focus {
    left: 10px;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.row > [class*="col-"] {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
}

/* testata */
.site-header {
    background: var(--ink);
    color: #fff;
}

.site-header .container {
    position: relative;
}

.support-links {
    display: none;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-links a {
    display: block;
    padding: 12px 20px;
    background: #f1f1f1;
    color: #333;
    font-size: .875rem;
    text-decoration: none;
}

.support-links a:hover {
    background: #fff;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
}

.brand-link {
    display: block;
    line-height: 0;
}

.brand-logo {
    width: auto;
    height: 28px;
}

.brand-place {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .45);
    color: var(--sky);
    font-size: 24px;
    font-weight: 600;
    line-height: 34px;
}

.menu-toggle {
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    content: "";
}

.menu-bars::before {
    transform: translateY(-7px);
}

.menu-bars::after {
    transform: translateY(5px);
}

.main-tabs {
    display: none;
    padding-bottom: 14px;
}

.main-tabs.is-open {
    display: block;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-tab a {
    display: block;
    padding: 12px 20px;
    background: #fff;
    color: #333;
    font-size: .9375rem;
    text-decoration: none;
}

.nav-tab a:hover,
.nav-tab.is-active a {
    box-shadow: inset 0 -4px 0 var(--sky);
}

.nav-home a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky);
    color: var(--ink);
}

.breadcrumb {
    padding: 12px 0;
    background: var(--mist);
    font-size: .875rem;
}

/* carosello */
.hero-band {
    padding: 30px 0;
    background: #c5cdd1;
}

.hero-carousel {
    position: relative;
    background: #fff;
}

.carousel-slide {
    display: none;
}

.carousel-slide.is-current {
    display: block;
}

.slide-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.slide-card {
    padding: 28px 24px 34px;
}

.slide-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 300;
}

.slide-text {
    margin: 0 0 24px;
    color: #333;
}

.pill-btn {
    display: inline-block;
    min-width: 200px;
    padding: 14px 30px;
    border: 2px solid var(--ink);
    border-radius: 30px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: .9375rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.pill-btn:hover {
    background: #3a1b84;
}

.pill-btn-ghost {
    background: transparent;
    color: var(--ink);
}

.pill-btn-light {
    border-color: #fff;
    background: #fff;
    color: var(--ink);
}

/* frecce e puntini si appoggiano al carosello, non al flusso */
.carousel-arrow {
    position: absolute;
    top: calc((100vw - 40px) * .28 - 25px);
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #333;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.carousel-prev {
    left: 14px;
}

.carousel-next {
    right: 14px;
}

.carousel-dots {
    position: absolute;
    top: 4px;
    right: 6px;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-dots a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0;
}

.carousel-dots a::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cfd3d6;
    content: "";
}

.carousel-dots a.is-on::before {
    background: #e8169f;
}

.page-head-legal {
    padding-bottom: 20px;
}

.cookie-card-panel {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: var(--mist);
    font-size: .875rem;
}

.cookie-card-panel p {
    margin: 0 0 6px;
}

.cookie-card-panel p:last-child {
    margin: 0;
}

/* box di benvenuto */
.intro-box {
    margin-top: 0px;
    padding: 30px 20px;
    background: var(--mist);
}

.intro-title {
    margin: 0 0 22px;
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 600;
}

.intro-title::after {
    display: block;
    width: 45px;
    height: 4px;
    margin-top: 14px;
    background: var(--ink);
    content: "";
}

.intro-body {
    max-width: 600px;
}

.arrow-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 50px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.arrow-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 400;
    text-decoration: none;
}

.arrow-links a:hover {
    text-decoration: underline;
}

.chev {
    flex: none;
}

/* griglia carte */
.block-title {
    margin: 0 0 24px;
    font-size: clamp(22px, 2.6vw, 26px);
    font-weight: 300;
}

.doc-grid {
    padding: 40px 0 10px;
}

.doc-item {
    display: flex;
    flex-direction: column;
    height: calc(100% - 20px);
    margin-bottom: 20px;
    background: var(--mist);
}

.doc-media .item-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.doc-caption {
    padding: 20px;
}

.doc-title {
    margin: 0 0 6px;
    font-size: 1.1875rem;
}

.doc-caption p {
    margin: 0;
    font-size: .9375rem;
}

/* prova interattiva */
.try-row {
    margin: 30px 0 50px;
    padding: 30px 20px;
    border-top: 4px solid var(--sky);
    background: #fff;
    box-shadow: 0 0 0 1px #d9dee1;
}

.try-head p {
    max-width: 640px;
    margin-top: 0;
}

.try-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 2px;
    margin: 20px 0 0;
}

.has-js .try-tabs {
    display: flex;
}

.try-tab {
    padding: 12px 18px;
    border: 0;
    background: var(--mist);
    color: var(--ink);
    font: inherit;
    font-size: .9375rem;
    cursor: pointer;
}

.try-tab.is-active {
    background: var(--ink);
    color: #fff;
}

.try-panel {
    padding: 22px 0 0;
}

.has-js .try-panel[aria-hidden="true"] {
    display: none;
}

.try-label {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.try-line {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-left: 4px solid var(--ink);
    background: var(--mist);
    color: #333;
    font-size: 1rem;
}

.try-checks {
    margin: 0;
    padding-left: 20px;
}

/* sì e no */
.yes-no {
    padding-bottom: 30px;
}

.yes-col,
.no-col {
    height: calc(100% - 20px);
    margin-bottom: 20px;
    padding: 24px;
}

.yes-col {
    background: var(--mist);
}

.no-col {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--mist);
}

.yes-no-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 600;
}

.yes-col ul,
.no-col ul {
    margin: 0;
    padding-left: 20px;
}

.yes-col li + li,
.no-col li + li {
    margin-top: 8px;
}

/* tre giovedì */
.three-days {
    padding: 30px 0 20px;
}

.block-title-light {
    color: #555;
}

.day-item {
    margin-bottom: 30px;
}

.day-item .item-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.day-title {
    margin: 26px 0 12px;
    font-size: 22px;
    font-weight: 300;
}

.day-item .arrow-links {
    flex-direction: column;
    gap: 8px;
}

.day-item .arrow-links a {
    font-size: 1rem;
}

/* cicli */
.cycle-strip {
    margin: 10px 0 40px;
    padding: 30px 20px;
    background: var(--ink);
    color: #fff;
}

.cycle-strip .block-title {
    margin-bottom: 8px;
    color: #fff;
}

.cycle-note {
    margin: 0 0 22px;
    color: #d8d2ea;
}

.cycle-list {
    display: grid;
    gap: 2px;
}

.cycle-item {
    display: grid;
    gap: 2px;
    padding: 16px 20px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.cycle-item:hover {
    box-shadow: inset 6px 0 0 var(--sky);
}

.cycle-name {
    font-weight: 600;
}

.cycle-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9375rem;
}

/* dove e prezzo */
.place-box {
    padding-bottom: 30px;
}

.place-weak {
    padding: 14px 16px;
    border-left: 4px solid #e8169f;
    background: var(--mist);
    color: #333;
}

.price-card {
    margin-bottom: 20px;
    padding: 26px 24px;
    background: var(--ink);
    color: #fff;
}

.price-card a:not(.pill-btn) {
    color: #fff;
}

.price-label {
    margin: 0;
    color: var(--sky);
    font-size: .9375rem;
}

.price-value {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
}

/* domande */
.faq-block {
    padding: 10px 0 50px;
}

.faq-item {
    border-bottom: 1px solid #d9dee1;
}

.faq-item summary {
    position: relative;
    padding: 18px 40px 18px 0;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 400;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    right: 8px;
    top: 18px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    content: "+";
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    margin: 0 0 20px;
    max-width: 720px;
}

/* pagine interne */
.page-head {
    padding: clamp(30px, 5vw, 50px) 0;
    background: var(--mist);
}

.page-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
}

.page-title::after {
    display: block;
    width: 45px;
    height: 4px;
    margin-top: 14px;
    background: var(--ink);
    content: "";
}

.page-lead {
    max-width: 680px;
    margin: 0;
    font-size: 1.1875rem;
}

.page-body {
    padding-top: 40px;
    padding-bottom: 60px;
}

.prose h2 {
    margin: 34px 0 12px;
    font-size: 24px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose-img {
    width: 100%;
    margin: 24px 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.note-quote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--sky);
    background: var(--mist);
    color: #333;
}

.side-box {
    margin-bottom: 20px;
    padding: 24px;
    background: var(--mist);
}

.side-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.side-box .arrow-links {
    flex-direction: column;
    gap: 8px;
}

.side-box .arrow-links a {
    font-size: 1rem;
}

.plain-list {
    margin: 0;
    padding-left: 18px;
}

.day-block {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #d9dee1;
}

.legal-text {
    max-width: 780px;
}

.legal-text h2 {
    margin: 30px 0 8px;
    font-size: 21px;
}

/* modulo */
.tile-set {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
}

.tile-set legend {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 1.1875rem;
    font-weight: 400;
}

.tiles {
    display: grid;
    gap: 10px;
}

.tile {
    position: relative;
    display: block;
    cursor: pointer;
}

.tile input {
    position: absolute;
    opacity: 0;
}

.tile-box {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 2px solid #d9dee1;
    background: #fff;
    color: var(--ink);
}

.tile input:checked + .tile-box {
    border-color: var(--ink);
    box-shadow: inset 0 -4px 0 var(--sky);
}

.tile input:focus-visible + .tile-box {
    outline: 3px solid var(--sky);
}

.tile-box small {
    color: var(--text);
    font-size: .875rem;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 400;
}

.optional {
    color: var(--text);
    font-size: .875rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #a9b1b6;
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-weight: 400;
}

.field.has-error input,
.field.has-error textarea {
    border-color: #b0103f;
}

.field-error {
    min-height: 20px;
    margin: 4px 0 0;
    color: #b0103f;
    font-size: .875rem;
}

.field-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 10px;
    align-items: start;
}

.field-check input {
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
}

.field-check .field-error {
    grid-column: 2;
}

.field-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--ink);
    font-weight: 400;
}

/* footer */
.site-footer {
    padding: 50px 0 30px;
    background: var(--ink);
    color: #fff;
    font-size: .9375rem;
}

.footer-title {
    margin: 0 0 16px;
    color: var(--sky);
    font-size: 1rem;
    font-weight: 400;
}

.footer-title-white {
    color: #fff;
    font-weight: 600;
}

.footer-cols > div {
    margin-bottom: 26px;
}

.footer-list,
.footer-contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li + li {
    margin-top: 10px;
}

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

.site-footer a:hover {
    text-decoration: underline;
}

.footer-text {
    margin: 0;
}

.footer-contacts a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    word-break: break-word;
}

.footer-contacts svg {
    flex: none;
}

.footer-rule {
    height: 1px;
    margin: 10px 0 26px;
    border: 0;
    background: rgba(255, 255, 255, .4);
}

.site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.site-links li {
    padding: 0 16px;
    border-left: 1px solid rgba(255, 255, 255, .6);
}

.site-links li:first-child {
    padding-left: 0;
    border-left: 0;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.footer-small {
    margin: 0;
    color: #ddd8ec;
    font-size: .875rem;
}

/* scheda cookie, angolo in basso a destra */
.cookie-card {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 40;
    max-width: 380px;
    margin-left: auto;
    padding: 22px;
    border-top: 4px solid var(--sky);
    background: #fff;
    color: #333;
    font-size: .9375rem;
    box-shadow: 0 8px 30px rgba(20, 6, 60, .28);
}

.cookie-card-title {
    margin: 0 0 8px;
    font-size: 1.1875rem;
}

.cookie-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cookie-card-actions .pill-btn {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
}

.cookie-card-more {
    margin: 12px 0 0;
    font-size: .875rem;
}

@media (min-width: 568px) {
    .tiles {
        grid-template-columns: repeat(3, 1fr);
    }

    .tiles-small {
        grid-template-columns: repeat(4, 1fr);
    }

    .row > .col-sm-6 {
        width: 50%;
    }

    .cycle-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 850px) {
    .support-links {
        display: flex;
    }

    .brand-row {
        padding: 22px 0 24px;
    }

    .brand-logo {
        height: 36px;
    }

    .menu-toggle {
        display: none;
    }

    .main-tabs {
        display: block;
        padding-bottom: 0;
    }

    .nav-list {
        flex-direction: row;
    }

    .nav-home a {
        width: 48px;
        height: 100%;
        padding: 0;
    }

    .carousel-slide.is-current {
        display: flex;
    }

    .slide-media {
        width: 60%;
        min-width: 0;
    }

    .slide-img {
        height: 100%;
        aspect-ratio: auto;
        min-height: 400px;
    }

    .slide-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 40%;
        padding: 44px 76px 44px 30px;
    }

    .carousel-arrow {
        top: calc(50% - 25px);
    }

    .carousel-prev {
        left: 16px;
    }

    .carousel-next {
        right: 14px;
    }

    .intro-box {
        padding: 34px 20px 40px;
    }

    .row > .col-md-3 {
        width: 25%;
    }

    .row > .col-md-4 {
        width: 33.333%;
    }

    .row > .col-md-5 {
        width: 41.666%;
    }

    .row > .col-md-7 {
        width: 58.333%;
    }

    .row > .col-md-8 {
        width: 66.666%;
    }

    .try-row,
    .cycle-strip {
        padding: 34px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.text-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
