/* Oro con le Carte · fogli di stile
   bordeaux al posto del blu del modello: il blu era già di troppi siti di finanza, l'oro lo usiamo solo per i dettagli */

:root {
    --bordeaux: #6E1E3A;
    --bordeauxDark: #4A1429;
    --goldLine: #C9A227;
    --sand: #f3f0ec;
    --mist: #EEEBEE;
    --testoScuro: #1d1d1f;
}

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

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

body {
    margin: 0;
    background: #fff;
    color: var(--testoScuro);
    font-family: "Schibsted Grotesk", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    overflow-x: clip;
}

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

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

h1, h2, h3 {
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 .6em;
    text-wrap: balance;
}

:focus-visible {
    outline: 3px solid var(--goldLine);
    outline-offset: 2px;
}

.u-skipLink {
    position: absolute;
    left: -9999px;
}

.u-skipLink:focus {
    left: 12px;
    top: 12px;
    z-index: 100;
    background: #FFFFFF;
    padding: .6rem 1rem;
}

.u-visuallyHidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.u-eyebrow {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
    color: #f1d98a;
}

.u-eyebrow--dark {
    color: #1d1d1f;
}

.u-muted {
    color: #5f5f66;
    font-weight: 400;
}

.u-breakAll {
    overflow-wrap: anywhere;
}

.u-ctaLine {
    margin-top: 2.2rem;
}

/* Button */
.Button {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 2rem;
    cursor: pointer;
    font: 500 1rem/1.2 "Schibsted Grotesk", sans-serif;
    padding: .55rem 1.1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.Button--primary {
    background: var(--bordeaux);
    border-color: var(--bordeaux);
    color: #fff;
}

.Button--primary:hover {
    background: var(--bordeauxDark);
}

.Button--secondary {
    background: #fff;
    border-color: var(--bordeaux);
    color: var(--bordeaux);
}

.Button--secondary:hover {
    background: #F7EEF1;
}

.Button--ghostLight {
    border-color: #fff;
    color: #fff;
    font-size: 1.0625rem;
    padding: .7rem 1.1rem;
}

.Button--ghostLight:hover {
    background: rgba(255, 255, 255, .12);
}

.Button--white {
    background: #fff;
    color: var(--bordeaux);
}

.Button--large {
    font-size: 1.125rem;
    padding: .8rem 1.6rem;
}

/* siteHeader */
.siteHeader {
    position: relative;
    z-index: 20;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.siteHeader-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 40px;
}

.siteHeader-logo img {
    width: 190px;
}

.siteHeader-utility {
    display: flex;
    align-items: center;
    gap: 14px;
}

.siteHeader-small {
    color: #2b2b30;
    font-size: .9rem;
    text-decoration: none;
    padding: 0 10px;
    border-left: 1px solid #ccc;
}

.siteHeader-small:first-child {
    border-left: 0;
}

.siteHeader-toggle {
    display: none;
    background: var(--bordeaux);
    border: 0;
    border-radius: 2rem;
    color: #fff;
    font: 500 .95rem "Schibsted Grotesk", sans-serif;
    padding: .5rem 1rem;
}

.mainNav {
    background: #F4F4F4;
}

.mainNav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 40px;
    list-style: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.mainNav-link {
    display: block;
    color: var(--bordeaux);
    font-size: 1rem;
    padding: 14px 0 12px;
    border-bottom: 4px solid transparent;
    text-decoration: none;
}

.mainNav-link.isCurrent {
    color: #1d1d1f;
    border-bottom-color: #1d1d1f;
}

.mainNav-link:hover {
    border-bottom-color: var(--goldLine);
}

/* sfaccettature */
.facetBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* heroPanel */
.heroPanel {
    background-color: #5C1A33;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 40%;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

.heroPanel-text {
    position: relative;
    align-self: center;
    padding: 64px 40px 64px 64px;
}

.heroPanel-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.heroPanel-lead {
    font-size: 1.0625rem;
    margin: 0 0 1.8rem;
    max-width: 34rem;
}

.heroPanel-photo {
    position: relative;
    min-width: 0;
    height: 100%;
}

.heroPanel-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

/* nextGroup: il pannello apribile sotto l'hero */
.nextGroup {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--sand);
    border-radius: 0 0 2rem 2rem;
    padding: 18px 64px 26px;
}

.nextGroup-summary {
    cursor: pointer;
    font-size: 1.6rem;
    padding: 6px 0;
}

.nextGroup-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 40px;
    padding-top: 10px;
}

.nextGroup-body p {
    margin: 0;
}

/* twoCols */
.twoCols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

.twoCols-item {
    color: var(--bordeaux);
    padding: 0 48px 0 0;
}

.twoCols-item + .twoCols-item {
    border-left: 1px solid #ccc;
    padding: 0 0 0 48px;
}

.twoCols-item h2 {
    color: #1d1d1f;
    font-size: 1.75rem;
    margin-top: 1.2rem;
}

.twoCols-item p {
    color: #1d1d1f;
    margin: 0 0 1.6rem;
}

/* badgePanel */
.badgePanel {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 70px;
    background: linear-gradient(110deg, var(--sand) 55%, #e7e1e4 55%);
    border-radius: 2rem;
    padding: 50px 64px;
}

.badgePanel > * {
    min-width: 0;
}

.badgePanel h2 {
    color: var(--bordeauxDark);
    font-size: 1.75rem;
    font-weight: 700;
}

.itemCard {
    background: #fff;
    border: 6px solid var(--bordeaux);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    padding: 20px 22px;
    transform: rotate(1.5deg);
}

.itemCard-head {
    background: var(--bordeaux);
    color: #fff;
    font-weight: 700;
    margin: -20px -22px 16px;
    padding: 8px 22px;
}

.itemCard-list {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 8px 10px;
    margin: 0;
    font-size: .95rem;
}

.itemCard-list dt {
    font-weight: 700;
}

.itemCard-list dd {
    margin: 0;
    font-family: "Gelasio", Georgia, serif;
}

/* threeIcons */
.threeIcons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 16px;
    color: #0E6B6B;
}

.threeIcons-item p {
    color: #1d1d1f;
    font-size: 1.15rem;
    margin: 1rem 0 0;
}

/* quizPanel */
.quizPanel {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 90px;
    background: var(--mist);
    border-radius: 2rem;
    padding: 40px 48px;
}

.quizPanel > * {
    min-width: 0;
}

.quizPanel-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quizTile {
    aspect-ratio: 1 / 1;
    background: var(--tile);
    border: 0;
    border-radius: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    color: #fff;
    cursor: pointer;
    font: 400 1.2rem "Gelasio", Georgia, serif;
    transition: transform .15s;
}

.quizTile:hover,
.quizTile[aria-pressed="true"] {
    transform: translateY(-3px);
    outline: 3px solid #1d1d1f;
}

.quizTile--dashed {
    background: #F7F5F2;
    border: 2px dashed #8a8a8a;
    color: #3d3d3d;
    box-shadow: none;
}

.quizPanel-text h2 {
    font-size: 1.75rem;
}

/* tabsBlock */
.tabsBlock {
    max-width: 1200px;
    margin: 0 auto 90px;
    padding: 0 16px;
}

.tabsBlock-title {
    font-size: 1.75rem;
    text-align: center;
}

.tabsBlock-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 30px 0 0;
}

.tabsBlock-bar button {
    background: none;
    border: 0;
    border-bottom: 6px solid transparent;
    color: #1F5A8A;
    cursor: pointer;
    font: 400 1.1rem "Schibsted Grotesk", sans-serif;
    padding: 14px 40px;
}

.tabsBlock-bar button[aria-selected="true"] {
    border-bottom-color: var(--bordeaux);
    color: var(--bordeaux);
    font-weight: 700;
}

.tabsBlock-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
    box-shadow: 0 -6px 8px -6px rgba(0, 0, 0, .2);
}

.tabsBlock-panel[hidden] {
    display: none;
}

.tabsBlock-text {
    background: var(--sand);
    padding: 60px 28px;
}

.tabsBlock-text h3 {
    font-size: 1.6rem;
}

.tabsBlock-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* darkBand */
.pathSteps {
    max-width: 1200px;
    margin: 0 auto 90px;
    padding: 0 16px;
}

.pathSteps-title {
    text-align: center;
    margin: 0 0 40px;
}

.pathSteps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: tappa;
}

.pathSteps-item {
    position: relative;
    border-top: 3px solid #0E6B6B;
    padding-top: 24px;
    color: #0E6B6B;
}

.pathSteps-item p {
    color: #1d1d1d;
    margin: 0;
}

.pathSteps-item .pathSteps-name {
    font-weight: 700;
    margin: 12px 0 6px;
}

.darkBand {
    background-color: #5C1A33;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 40px;
    align-items: start;
    color: #fff;
    padding: 0 40px 50px;
}

.darkBand-text {
    position: relative;
    padding-top: 30px;
}

.darkBand-text h2 {
    font-family: "Gelasio", Georgia, serif;
    font-size: 2rem;
}

.darkBand-card {
    position: relative;
    background: #fff;
    border-radius: 0 0 1.4rem 1.4rem;
    color: #1d1d1f;
    padding: 22px 20px;
}

.darkBand-cardTitle {
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.darkBand-row {
    display: block;
    border-top: 1px solid #ddd;
    color: #1d1d1f;
    padding: 12px 0;
    text-decoration: none;
}

.darkBand-row:hover strong {
    color: var(--bordeaux);
}

.darkBand-row strong,
.darkBand-row span {
    display: block;
}

.darkBand-note {
    border-top: 1px solid #ddd;
    margin: 0;
    padding-top: 12px;
}

/* faq e note */
.faqList,
.smallPrint {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

.faqList h2 {
    font-size: 1.75rem;
}

.faqList-item {
    border-bottom: 1px solid #ddd;
}

.faqList-item summary {
    cursor: pointer;
    font-size: 1.1rem;
    padding: 16px 0;
}

.smallPrint {
    font-size: .85rem;
    color: #4a4a4f;
}

/* innerHero, prose e testi legali */
.innerHero {
    background-color: #5C1A33;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

.innerHero-text {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 50px;
}

.innerHero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.innerHero-lead {
    font-size: 1.125rem;
    margin: 0;
}

.prose {
    overflow-wrap: anywhere;
    max-width: min(860px, 100%);
    margin: 0 auto;
    padding: 40px 24px 80px;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.prose h2 {
    color: var(--bordeauxDark);
    font-size: 1.55rem;
    margin-top: 1.8em;
}

.prose-img {
    width: 100%;
    aspect-ratio: 12 / 7;
    object-fit: cover;
    border-radius: 1.2rem;
    margin: 30px 0;
}

.u-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .98rem;
}

.u-table th,
.u-table td {
    border-bottom: 1px solid #ddd;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.u-table thead th {
    background: var(--sand);
}

.legalBlock {
    border-left: 3px solid var(--goldLine);
    margin: 0 0 26px;
    padding: 2px 0 2px 20px;
}

.legalBlock-title {
    font-size: .95rem !important;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 6px !important;
}

.legalBlock-base {
    font-size: .85rem;
    color: #5f5f66;
    margin: 6px 0 0;
}

.pageLegal .innerHero-text {
    padding-bottom: 40px;
}

/* joinForm */
.joinForm {
    display: grid;
    gap: 18px;
}

.joinForm-set {
    border: 1px solid #ccc;
    border-radius: 1rem;
    margin: 0;
    padding: 14px 20px;
}

.joinForm-set legend {
    font-weight: 700;
    padding: 0 6px;
}

.joinForm-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.joinForm-choice input {
    margin-top: 5px;
    accent-color: var(--bordeaux);
}

.joinForm-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.joinForm-field input {
    width: 100%;
    border: 1px solid #333;
    border-radius: 0;
    font: 1rem "Schibsted Grotesk", sans-serif;
    padding: 12px;
}

.joinForm-field input[aria-invalid="true"] {
    border: 2px solid #A4122A;
}

.joinForm-errors {
    background: #FBEFF1;
    border-left: 4px solid #A4122A;
    padding: 12px 16px;
}

.joinForm-errors ul {
    margin: 4px 0 0;
    padding-left: 20px;
}

.joinForm-hp {
    position: absolute;
    left: -9999px;
}

.joinForm-status {
    min-height: 1.5em;
    margin: 0;
}

/* siteFooter */
.siteFooter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #2a0c18;
    padding: 18px 40px;
}

.siteFooter-bar img {
    width: 180px;
}

.siteFooter-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

.siteFooter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.siteFooter-list li {
    margin-bottom: 18px;
}

.siteFooter-list a {
    color: #1d1d1f;
    font-weight: 700;
    text-decoration: none;
}

.siteFooter-list a:hover {
    text-decoration: underline;
}

.siteFooter-title {
    font-weight: 700;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin: 0 0 10px;
}

.siteFooter-legal {
    background: var(--sand);
    padding: 22px 40px 26px;
}

.u-pipeList {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.u-pipeList li {
    border-left: 1px solid #999;
    padding: 0 12px;
}

.u-pipeList li:first-child {
    border-left: 0;
    padding-left: 0;
}

.u-pipeList a,
.u-linkButton {
    color: #1d1d1f;
    font: 1.05rem "Schibsted Grotesk", sans-serif;
    text-decoration: none;
}

.u-linkButton {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

/* cookieBox */
.cookieBox {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 80;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
    background: #fff;
    border-radius: 1.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 22px 26px;
    font-size: .95rem;
}

.cookieBox-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.cookieBox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media screen and (min-width: 48rem) and (max-width: 64rem) {
    .heroPanel {
        grid-template-columns: 1fr 36%;
    }
    .quizPanel,
    .darkBand {
        grid-template-columns: 1fr;
    }
    .badgePanel {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 64.01rem) {
    .heroPanel {
        margin-top: 0;
    }
}

@media screen and (max-width: 47.99rem) {
    .pathSteps-list {
        grid-template-columns: 1fr;
    }
    .siteHeader-top {
        padding: 10px 16px;
    }
    .siteHeader-utility {
        display: none;
    }
    .siteHeader-toggle {
        display: block;
    }
    .mainNav {
        display: none;
    }
    .mainNav.isOpen {
        display: block;
    }
    .mainNav-list {
        flex-direction: column;
        padding: 0 16px;
    }
    .heroPanel,
    .twoCols,
    .badgePanel,
    .threeIcons,
    .quizPanel,
    .tabsBlock-panel,
    .darkBand,
    .siteFooter-cols {
        grid-template-columns: 1fr;
    }
    .heroPanel-text {
        padding: 40px 20px 20px;
    }
    .heroPanel-img {
        min-height: 0;
        aspect-ratio: 4 / 3;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .nextGroup {
        padding: 14px 20px 22px;
        border-radius: 0 0 1.2rem 1.2rem;
    }
    .twoCols-item,
    .twoCols-item + .twoCols-item {
        border-left: 0;
        padding: 0;
    }
    .twoCols-item + .twoCols-item {
        border-top: 1px solid #ccc;
        margin-top: 30px;
        padding-top: 20px;
    }
    .badgePanel,
    .quizPanel {
        border-radius: 1.2rem;
        padding: 30px 18px;
        margin-left: 16px;
        margin-right: 16px;
        background: var(--sand);
    }
    .itemCard {
        transform: none;
    }
    .itemCard-list {
        grid-template-columns: 1fr;
    }
    .quizPanel-tiles {
        gap: 10px;
    }
    .quizTile {
        font-size: 1rem;
    }
    .tabsBlock-bar button {
        padding: 12px 12px;
        font-size: 1rem;
    }
    .tabsBlock-text {
        padding: 30px 20px;
    }
    .darkBand {
        padding: 0 16px 30px;
    }
    .faqList,
    .smallPrint {
        padding: 0 16px;
    }
    .siteFooter-bar,
    .siteFooter-cols,
    .siteFooter-legal {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .Button,
    .quizTile {
        transition: none !important;
    }
}

.siteHeader-hideSm {
    white-space: nowrap;
}
