/* ==========================================================================
   DGTour webapp - mobile first, palette bianco / oro
   ========================================================================== */
:root{
    --gold: #c98b0b;
    --gold-dark: #a87209;
    --gold-light: #f2d99f;
    --gold-bg: #fdf7ea;
    --ink: #23211d;
    --ink-soft: #6f6a62;
    --line: #ece8e1;
    --bg: #ffffff;
    --ok: #2e8b57;
    --danger: #c0392b;
    --radius: 14px;
    --shadow: 0 2px 12px rgba(35,33,29,0.08);
    --shadow-lg: 0 12px 32px rgba(35,33,29,0.16);
    --header-h: 64px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html{
    -webkit-text-size-adjust: 100%;
}
body{
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    overscroll-behavior-y: none;
}
body.menu-open{
    overflow: hidden;
}
img{
    max-width: 100%;
    display: block;
}
a{
    color: inherit;
    text-decoration: none;
}
[hidden]{
    display: none !important;
}

/* ---------------------------------------------------------------- header -- */
.app-header{
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0.5rem;
    padding: calc(0.35rem + var(--safe-top)) 0.75rem 0.35rem;
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.app-header__back,
.app-header__menu{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    border-radius: 50%;
}
.app-header__back:active,
.app-header__menu:active{
    background: var(--gold-bg);
}
.app-header__spacer{
    display: block;
}
.app-header__logo{
    display: flex;
    justify-content: center;
}
/* il logo è 400x249: viene mostrato a metà risoluzione (200x125), scalato in
   proporzione quando lo spazio verticale dell'header non basta */
.app-header__logo img{
    width: 200px;
    height: 125px;
    max-height: 52px;
    object-fit: contain;
}
.app-header__title{
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ menu -- */
.menu-backdrop{
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(35,33,29,0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}
body.menu-open .menu-backdrop{
    opacity: 1;
}
.menu-panel{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(320px, 86vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}
body.menu-open .menu-panel{
    transform: translateX(0);
}
.menu-panel__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    border-bottom: 1px solid var(--line);
}
.menu-panel__logo{
    width: 200px;
    height: 125px;
    max-height: 46px;
    object-fit: contain;
    object-position: left center;
}
.menu-panel__close{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    border-radius: 50%;
}
.menu-panel__list{
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.menu-panel__link{
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.25rem;
    color: var(--ink);
    font-weight: 600;
    border-left: 3px solid transparent;
}
.menu-panel__link svg{
    color: var(--gold);
    flex-shrink: 0;
}
.menu-panel__link:active,
.menu-panel__link.is-active{
    background: var(--gold-bg);
    border-left-color: var(--gold);
    color: var(--gold-dark);
}
.menu-panel__foot{
    border-top: 1px solid var(--line);
    padding: 1rem 1.25rem;
}
.menu-panel__score{
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--gold-dark);
}
.menu-panel__score-value{
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.menu-panel__score-label{
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------------ main -- */
.main{
    padding: 1.25rem 1rem calc(2.5rem + var(--safe-bottom));
    max-width: 640px;
    margin: 0 auto;
}
.main--center{
    min-height: calc(100vh - var(--header-h) - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ----------------------------------------------------------------- intro -- */
.intro{
    margin-bottom: 1.5rem;
}
.intro__eyebrow{
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--gold-dark);
    margin-bottom: 0.3rem;
}
.intro__title{
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.intro__text{
    color: var(--ink-soft);
}
.section-head{
    margin: 2rem 0 1rem;
}
.section-head__title{
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}
.section-head__title::after{
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
    margin-top: 0.45rem;
}
.section-head__text{
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-top: 0.6rem;
}
.hero{
    margin: -1.25rem -1rem 1.25rem;
}
.hero img{
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ------------------------------------------------------------ banner card -- */
.banner-list{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.banner-card{
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.banner-card:active{
    transform: scale(0.985);
    box-shadow: var(--shadow-lg);
}
.banner-card.is-complete{
    border-color: var(--gold-light);
}
.banner-card__media{
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--gold-bg);
}
.banner-card__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-card__placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
}
.banner-card__badge{
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.banner-card__body{
    padding: 0.9rem 2.4rem 1rem 1rem;
}
.banner-card__title{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.banner-card__text{
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.banner-card__chevron{
    position: absolute;
    right: 0.75rem;
    bottom: 1.1rem;
    color: var(--gold);
}

/* -------------------------------------------------------------- progress -- */
.progress{
    margin-top: 0.75rem;
}
.progress--big{
    margin: 1.25rem 0;
}
.progress__bar{
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}
.progress__bar span{
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transition: width 0.4s ease;
}
.progress__label{
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.progress.is-complete .progress__label{
    color: var(--gold-dark);
}

/* --------------------------------------------------------- mission list -- */
.mission-list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.mission-item__link{
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 2.2rem 0.9rem 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease;
}
.mission-item__link:active{
    transform: scale(0.985);
}
.mission-item.is-done .mission-item__link{
    background: var(--gold-bg);
    border-color: var(--gold-light);
}
.mission-item__marker{
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: var(--line);
    color: var(--ink-soft);
}
.mission-item.is-done .mission-item__marker{
    background: var(--gold);
    color: #fff;
}
.mission-item__body{
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.mission-item__type{
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dark);
}
.mission-item__title{
    font-weight: 700;
    line-height: 1.3;
}
.mission-item__meta{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
}
.mission-item__chevron{
    position: absolute;
    right: 0.7rem;
    color: var(--gold);
}
.tag{
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--line);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tag--done{
    background: var(--gold);
    color: #fff;
}
.tag--type{
    background: var(--gold-bg);
    color: var(--gold-dark);
}

/* --------------------------------------------------------- mission page -- */
.mission-head{
    margin-bottom: 1.5rem;
}
.mission-head__eyebrow{
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-dark);
    margin-bottom: 0.35rem;
}
.mission-head__title{
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.mission-head__type{
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.mission-head__text{
    color: var(--ink-soft);
}
.mission-done{
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--gold-bg);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
}
.mission-done__icon{
    width: 58px;
    height: 58px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #fff;
}
.mission-done__title{
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.mission-done__text{
    color: var(--ink-soft);
}

/* -------------------------------------------------------------- buttons -- */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn:active{
    transform: scale(0.97);
}
.btn:disabled{
    opacity: 0.6;
    cursor: default;
}
.btn--primary{
    background: var(--gold);
    color: #fff;
}
.btn--primary:hover{
    background: var(--gold-dark);
}
.btn--ghost{
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}
.btn--capture{
    background: var(--ok);
    color: #fff;
}
.btn--lg{
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}
.actions{
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

/* ---------------------------------------------------------- empty state -- */
.empty-state{
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: var(--ink-soft);
    border: 1px dashed var(--gold-light);
    border-radius: var(--radius);
    background: var(--gold-bg);
}
.empty-state > svg{
    color: var(--gold-light);
    margin: 0 auto 0.75rem;
}
.empty-state h1,
.empty-state h2{
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.notice{
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
}
.notice--error{
    background: #fdf1f0;
    border: 1px solid #f3cfcb;
    color: var(--danger);
}

/* --------------------------------------------------------- gps / geo ------ */
.gps-panel,
.qr-panel,
.quiz-panel,
.ar-panel{
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
.gps-panel__title,
.qr-panel__title,
.quiz-panel__title,
.ar-stage__title{
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.gps-panel__hint,
.qr-panel__hint,
.quiz-panel__hint,
.ar-stage__text{
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}
.directions{
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    margin-bottom: 1.25rem;
    background: var(--gold-bg);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
    color: var(--ink);
}
.directions__icon{
    display: flex;
    color: var(--gold-dark);
}
.directions__body{
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.directions__body small{
    color: var(--ink-soft);
    font-size: 0.8rem;
}
.directions__chevron{
    color: var(--gold);
    display: flex;
}

.proximity{
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}
.proximity__svg{
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.proximity__bg{
    fill: none;
    stroke: var(--line);
    stroke-width: 8;
}
.proximity__fill{
    fill: none;
    stroke: var(--gold);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}
.proximity__center{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.proximity__distance{
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
}
.proximity__label{
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-top: 0.2rem;
}
.gps-panel.is-near .proximity__fill{
    stroke: var(--ok);
}
.gps-panel.is-near .proximity__distance{
    color: var(--ok);
}
.gps-panel.is-near .btn--primary{
    background: var(--ok);
}

/* ------------------------------------------------------------ qr scanner -- */
.qr-stage{
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: #12100d;
}
#qr-reader{
    width: 100%;
    height: 100%;
}
#qr-reader video{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
#qr-reader img[alt="Info icon"],
#qr-reader__dashboard{
    display: none !important;
}
.qr-stage__frame{
    position: absolute;
    inset: 15%;
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.35);
    pointer-events: none;
    transition: border-color 0.25s ease;
}
.qr-panel.is-wrong .qr-stage__frame{
    border-color: var(--danger);
}
.qr-panel.is-wrong .qr-panel__hint{
    color: var(--danger);
    font-weight: 600;
}

/* ------------------------------------------------------------------ quiz -- */
.quiz-image{
    margin: -1.25rem -1.25rem 1.25rem;
}
.quiz-image img{
    width: 100%;
    height: auto;
    border-radius: var(--radius) var(--radius) 0 0;
}
.quiz-form{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.question{
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--gold-bg);
    border: 1px solid transparent;
    transition: border-color 0.25s ease;
}
.question.is-missing{
    border-color: var(--danger);
}
.question__legend{
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold-dark);
    padding: 0;
}
.question__text{
    font-weight: 700;
    margin: 0.35rem 0 0.9rem;
}
.question__answers{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.answer{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.answer input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.answer__marker{
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--line);
    position: relative;
    transition: border-color 0.2s ease;
}
.answer__marker::after{
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--gold);
    transform: scale(0);
    transition: transform 0.18s ease;
}
.answer:has(input:checked){
    border-color: var(--gold);
    background: var(--gold-bg);
}
.answer:has(input:checked) .answer__marker{
    border-color: var(--gold);
}
.answer:has(input:checked) .answer__marker::after{
    transform: scale(1);
}
.answer__text{
    line-height: 1.35;
}
.quiz-panel.is-wrong{
    animation: shake 0.4s linear;
}
@keyframes shake{
    0%, 100%{ transform: translateX(0); }
    25%{ transform: translateX(-8px); }
    75%{ transform: translateX(8px); }
}

/* -------------------------------------------------------------------- ar -- */
.ar-stage{
    text-align: center;
}
.ar-stage__icon{
    width: 74px;
    height: 74px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-bg);
    color: var(--gold);
}
.ar-stage__icon--ok{
    background: var(--ok);
    color: #fff;
}
.ar-stage .directions{
    text-align: left;
}
.compass{
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.25rem;
}
.compass__ring{
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 8px solid var(--line);
}
.compass__arrow{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--line);
    transition: transform 0.25s ease, color 0.25s ease;
}
.compass__arrow.is-active{
    color: var(--gold);
}
.ar-distance{
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.ar-bar{
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
    margin-bottom: 1rem;
}
.ar-bar span{
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transition: width 0.5s ease;
}
.ar-model{
    display: block;
    width: 100%;
    height: 320px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: var(--gold-bg);
    --poster-color: transparent;
}
#ar-capture{
    margin-top: 0.65rem;
}

/* ------------------------------------------------------------- celebrate -- */
.celebrate{
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--gold-bg);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius);
}
.celebrate--small{
    padding: 1.5rem 1.25rem;
}
.celebrate__medal{
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #fff;
    box-shadow: 0 8px 24px rgba(201,139,11,0.35);
}
.celebrate--small .celebrate__medal{
    width: 72px;
    height: 72px;
}
.celebrate__title{
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.celebrate__text{
    color: var(--ink-soft);
}
.celebrate__stats{
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.5rem 0 0.5rem;
}
.celebrate__stat-value{
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold-dark);
}
.celebrate__stat-label{
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-soft);
    margin-top: 0.3rem;
}
.reward-text{
    margin-top: 1.25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
    line-height: 1.6;
}
.confetti{
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
}

/* ----------------------------------------------------------------- info -- */
.article{
    line-height: 1.7;
}
.article h2{
    font-size: 1.1rem;
    font-weight: 800;
    margin: 1.75rem 0 0.5rem;
}
.article h2:first-child{
    margin-top: 0;
}
.article p,
.article ul{
    margin-bottom: 1rem;
    color: var(--ink-soft);
}
.article ul{
    padding-left: 1.25rem;
}
.article li{
    margin-bottom: 0.4rem;
}
.article strong{
    color: var(--ink);
}
.article a{
    color: var(--gold-dark);
    text-decoration: underline;
}
.article__note{
    padding: 0.75rem 1rem;
    background: var(--gold-bg);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--gold-dark) !important;
}

/* ----------------------------------------------------------- responsive -- */
@media (min-width: 700px){
    .main{
        padding-top: 2rem;
    }
    .hero{
        margin: 0 0 1.5rem;
        border-radius: var(--radius);
        overflow: hidden;
    }
    .actions{
        flex-direction: row;
        justify-content: center;
    }
    .btn--lg{
        width: auto;
        min-width: 260px;
        margin: 0 auto;
    }
}

/* fallback per i browser senza :has() - l'antemarker resta visibile ma inerte */
@supports not (selector(:has(*))){
    .answer input:checked ~ .answer__marker::after{
        transform: scale(1);
    }
}
