:root {
    --green: #3f7f05;
    --green2: #8aa51c;
    --cream: #fff1aa;
    --dark: #454541;
    --line: #e5e2dc;
    --muted: #777;
    --shadow: 0 14px 40px rgba(0,0,0,.12)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #eee;
    font-family: Arial,Helvetica,sans-serif;
    color: var(--dark)
}

.kiosk {
    width: min(100vw,562px);
    height: min(100vh,1000px);
    aspect-ratio: 9/16;
    margin: auto;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow)
}

    /*
    .kiosk:before, .kiosk:after {
        content: "";
        position: absolute;
        border: 55px solid var(--green);
        border-left-color: transparent;
        border-bottom-color: transparent;
        border-radius: 50%;
        opacity: .95;
        z-index: 0
    }
    */

    .kiosk:before {
        width: 360px;
        height: 360px;
        left: -220px;
        top: -190px
    }

    .kiosk:after {
        width: 410px;
        height: 410px;
        right: -280px;
        bottom: -230px;
        border-color: var(--cream);
        border-left-color: transparent;
        border-bottom-color: transparent;
        opacity: .8
    }

.content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 42px 34px;
    display: flex;
    flex-direction: column
}

.logo {
    max-width: 250px;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply
}

    .logo.big {
        max-width: 360px;
        margin-top: 120px
    }

.serif {
    font-family: Georgia,'Times New Roman',serif
}

.title {
    text-align: center;
    font-family: Georgia,'Times New Roman',serif;
    font-size: 43px;
    line-height: .98;
    margin: 28px 0 8px;
    color: #171717
}

.green {
    color: var(--green)
}

.subtitle {
    text-align: center;
    font-size: 20px
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 18px;
    min-height: 72px;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(63,127,5,.22)
}

    .btn.light {
        background: #fff;
        color: var(--green);
        border: 2px solid var(--green);
        box-shadow: none
    }

.spacer {
    flex: 1
}

.dots {
    text-align: center;
    margin: 22px 0
}

    .dots span {
        display: inline-block;
        width: 10px;
        height: 10px;
        background: #cfcfcf;
        border-radius: 50%;
        margin: 0 5px
    }

        .dots span:first-child {
            background: var(--green)
        }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px
}

.round {
    width: 42px;
    height: 42px;
    border: 1px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    text-decoration: none;
    font-size: 23px;
    background: #fff
}

.back {
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px
}

.brand-card {
    height: 126px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #111;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.04)
}

    .brand-card small {
        display: block;
        font-size: 12px;
        letter-spacing: 2px
    }

    .brand-card.serif {
        font-weight: 400
    }

.wave {
    margin: 28px -34px -42px;
    background: linear-gradient(135deg,var(--green),#2f6500);
    color: #fff;
    padding: 38px 34px;
    border-radius: 100% 100% 0 0/24% 24% 0 0;
    font-weight: 700
}

.hero-logo {
    font-size: 82px;
    font-weight: 800;
    text-align: center;
    margin: 35px 0 6px;
    color: #0a0a0a
}

.divider {
    width: 44px;
    height: 3px;
    background: #e0b72d;
    margin: 18px auto;
    border-radius: 3px
}

.text-center {
    text-align: center
}

.product-strip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 22px 0
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    background: #f7f1e8;
    border: 1px solid var(--line);
    text-decoration: none;
    color: #222
}

.product-img {
    height: 120px;
    background: linear-gradient(145deg,#f8f3eb,#d9c9ad);
    position: relative
}

/*
    .product-img:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 22px;
        width: 36px;
        height: 70px;
        transform: translateX(-50%);
        border-radius: 12px;
        background: rgba(255,255,255,.8);
        border: 2px solid #b99
    }
    */

.reed {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 3px;
    height: 90px;
    background: #111;
    transform-origin: bottom
}

    .reed.r1 {
        transform: rotate(-28deg)
    }

    .reed.r2 {
        transform: rotate(-14deg)
    }

    .reed.r3 {
        transform: rotate(0)
    }

    .reed.r4 {
        transform: rotate(14deg)
    }

    .reed.r5 {
        transform: rotate(28deg)
    }

.product-card p {
    font-size: 12px;
    text-align: center;
    margin: 8px 4px 10px
}

.detail-img {
    height: 430px;
    border-radius: 18px;
    background: linear-gradient(145deg,#faf6ed,#dfcfb7);
    position: relative;
    margin-top: 18px;
    overflow: hidden
}

    /*
    .detail-img:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 120px;
        width: 110px;
        height: 190px;
        transform: translateX(-50%);
        border-radius: 24px;
        background: rgba(255,255,255,.8);
        border: 3px solid #b99
    }
    */

    .detail-img .reed {
        height: 260px;
        top: 35px
    }

.bullets {
    list-style: none;
    padding: 0;
    margin: 20px 0
}

    .bullets li {
        margin: 12px 0;
        padding-left: 38px;
        position: relative
    }

        .bullets li:before {
            content: "✓";
            position: absolute;
            left: 0;
            top: -2px;
            width: 24px;
            height: 24px;
            background: var(--green);
            color: #fff;
            border-radius: 50%;
            text-align: center;
            line-height: 24px
        }

.filters {
    display: flex;
    gap: 8px;
    overflow: hidden;
    margin: 20px 0
}

.chip {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px
}

    .chip.active {
        background: var(--green);
        color: #fff
    }

.catalog {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    overflow: auto;
    padding-bottom: 95px
}

.field {
    width: 100%;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 8px 0;
    padding: 0 15px;
    font-size: 16px;
    background: #fff
}

.textarea {
    height: 96px;
    padding-top: 16px
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    margin: 14px 0
}

.thanks {
    align-items: center;
    justify-content: center;
    text-align: center
}

.heart {
    width: 104px;
    height: 104px;
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--green);
    margin: 40px auto
}

.menu-list {
    margin-top: 40px
}

.menu-item {
    height: 70px;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 14px 0;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #222;
    font-size: 17px;
    background: #fff
}

.fixed-bottom {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    z-index: 2
}

.event-card {
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px;
    margin-top: 18px;
    text-align: center
}

    .event-card img {
        width: 100%;
        border-radius: 14px
    }

.note {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.45
}

.program-logo {
    width: 110px;
    margin: 0 auto 10px;
    display: block
}


/* ===== VERSIONE TOTEM 4K / FULLSCREEN ===== */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #111
}

.kiosk {
    width: 562px;
    height: 1000px;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    transform: scale(var(--kiosk-scale,1));
    transform-origin: center center;
    will-change: transform,opacity;
    animation: screenIn .48s cubic-bezier(.2,.8,.2,1) both
}

    .kiosk.is-leaving {
        animation: screenOut .32s cubic-bezier(.4,0,.2,1) both
    }

a, button, .brand-card, .product-card, .menu-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(63,127,5,.18)
}

.btn, .brand-card, .menu-item, .round, .chip {
    transition: transform .22s ease,box-shadow .22s ease,background .22s ease,border-color .22s ease
}

    .btn:active, .brand-card:active, .menu-item:active, .round:active {
        transform: scale(.975)
    }

    .brand-card:hover, .product-card:hover, .menu-item:hover {
        box-shadow: 0 12px 30px rgba(0,0,0,.10)
    }

.product-card {
    transition: transform .22s ease,box-shadow .22s ease
}

    .product-card:active {
        transform: scale(.975)
    }

.content > * {
    animation: contentRise .55s cubic-bezier(.2,.8,.2,1) both
}

    .content > *:nth-child(2) {
        animation-delay: .04s
    }

    .content > *:nth-child(3) {
        animation-delay: .08s
    }

    .content > *:nth-child(4) {
        animation-delay: .12s
    }

    .content > *:nth-child(5) {
        animation-delay: .16s
    }

    .content > *:nth-child(6) {
        animation-delay: .20s
    }

@keyframes screenIn {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: scale(calc(var(--kiosk-scale,1) * .985)) translateY(18px)
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(var(--kiosk-scale,1)) translateY(0)
    }
}

@keyframes screenOut {
    from {
        opacity: 1;
        filter: blur(0);
        transform: scale(var(--kiosk-scale,1)) translateY(0)
    }

    to {
        opacity: 0;
        filter: blur(8px);
        transform: scale(calc(var(--kiosk-scale,1) * .985)) translateY(-14px)
    }
}

@keyframes contentRise {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (prefers-reduced-motion:reduce) {
    .kiosk, .kiosk.is-leaving, .content > * {
        animation: none !important;
        transition: none !important
    }
}

/* ===== HOME CON SLIDESHOW DI SFONDO ===== */
.home-screen:before, .home-screen:after {
    display: none
}

.home-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #fff
}

    .home-slideshow .slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        animation: homeSlideShow 18s infinite;
        transform: scale(1.05)
    }

    .home-slideshow .s1 {
        background-image: linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.38)),url('assets/evento.jpeg');
        animation-delay: 0s;
        background-position: center
    }

    .home-slideshow .s2 {
        background-image: linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.55)),url('assets/logo-piemonte.jpeg');
        animation-delay: 6s;
        background-size: 85%;
        background-repeat: no-repeat;
        background-color: #fff
    }

    .home-slideshow .s3 {
        background-image: radial-gradient(circle at 15% 12%,rgba(63,127,5,.18),transparent 28%),radial-gradient(circle at 88% 78%,rgba(255,241,170,.72),transparent 32%),linear-gradient(135deg,#ffffff 0%,#f7f2df 100%);
        animation-delay: 12s
    }

.home-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.90) 48%,rgba(255,255,255,.62) 100%)
}

.home-content {
    z-index: 2;
    padding-top: 42px;
    padding-bottom: 26px;
    justify-content: flex-start
}

.interactive-zone {
    position: relative;
    z-index: 10
}

.home-panel {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(229,226,220,.92);
    border-radius: 28px;
    padding: 34px 28px 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
    backdrop-filter: blur(7px)
}

.home-logo.logo.big {
    max-width: 260px;
    margin-top: 0
}

.home-panel .title {
    font-size: 38px;
    margin: 18px 0 12px
}

.home-panel .subtitle {
    font-size: 22px;
    margin: 0 0 24px
}

.home-btn {
    min-height: 78px;
    font-size: 18px;
    border-radius: 20px
}

.home-bottom-note {
    margin-top: auto;
    align-self: center;
    text-align: center;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(229,226,220,.9);
    border-radius: 999px;
    padding: 13px 26px;
    color: var(--dark);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    z-index: 3
}

    .home-bottom-note span {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 0 7px rgba(63,127,5,.12)
    }

    .home-bottom-note small {
        display: block;
        color: var(--muted);
        font-weight: 400;
        margin-top: 2px
    }

.home-screen .dots {
    position: relative;
    z-index: 3;
    margin: 18px 0 0
}

.field, .btn, .brand-card, .product-card, .menu-item, .round, .chip {
    position: relative;
    z-index: 10
}

@keyframes homeSlideShow {
    0% {
        opacity: 0;
        transform: scale(1.08)
    }

    8% {
        opacity: 1
    }

    32% {
        opacity: 1
    }

    42% {
        opacity: 0;
        transform: scale(1)
    }

    100% {
        opacity: 0;
        transform: scale(1)
    }
}

@media (prefers-reduced-motion:reduce) {
    .home-slideshow .slide {
        animation: none
    }

    .home-slideshow .s1 {
        opacity: 1
    }
}


/* ===== INTERAZIONI SEMPRE NELLA PARTE ALTA ===== */
.top-actions {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(229,226,220,.9);
    border-radius: 22px;
    padding: 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
    backdrop-filter: blur(6px)
}

    .top-actions.single {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        margin: 14px 0 12px
    }

    .top-actions .btn {
        min-height: 62px;
        border-radius: 16px;
        font-size: 16px
    }

.compact-title {
    font-size: 25px;
    margin: 12px 0 6px
}

.compact-strip {
    margin-top: 10px;
    margin-bottom: 0
}

    .compact-strip .product-img {
        height: 105px
    }

.detail-img {
    height: 315px;
    margin-top: 14px
}

    .detail-img:after {
        top: 78px;
        height: 155px
    }

    .detail-img .reed {
        height: 210px;
        top: 18px
    }

.compact-bullets {
    margin-top: 12px
}

.catalog {
    padding-bottom: 0;
    max-height: 590px
}

.catalog-with-top-cta {
    max-height: 520px
}

.fixed-bottom {
    display: none
}

.request-content {
    padding-top: 34px;
    justify-content: flex-start
}

.request-title {
    font-size: 33px !important;
    line-height: 1.05;
    margin: 18px 0 4px
}

.request-intro {
    margin: 4px 0 10px
}

.request-form {
    position: relative;
    z-index: 20;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(229,226,220,.95);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,.08)
}

    .request-form .field {
        height: 48px;
        margin: 6px 0;
        font-size: 15px
    }

    .request-form .textarea {
        height: 78px
    }

    .request-form .check {
        margin: 10px 0;
        font-size: 12px
    }

    .request-form .btn {
        min-height: 62px
    }

.menu-list {
    margin-top: 24px
}

.menu-item {
    position: relative;
    z-index: 20
}

.program-logo, .event-card {
    position: relative;
    z-index: 5
}

/* ===== AGGIORNAMENTO: HOME CON VIDEO E TRANSIZIONI CHIARE ===== */
.home-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #fff
}

    .home-video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        filter: saturate(.9) brightness(1.08);
        opacity: .9
    }

.home-fallback {
    z-index: -1
}

.home-video-bg + .home-fallback .slide {
    opacity: 0
}

.home-overlay {
    background: linear-gradient(180deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.86) 46%,rgba(255,255,255,.55) 100%)
}

.kiosk {
    animation: screenInLight .46s cubic-bezier(.2,.8,.2,1) both
}

    .kiosk.is-leaving {
        animation: screenOutLight .28s cubic-bezier(.4,0,.2,1) both
    }

@keyframes screenInLight {
    from {
        opacity: 0;
        filter: brightness(1.08);
        transform: scale(calc(var(--kiosk-scale,1) * .995)) translateY(12px);
        box-shadow: 0 0 0 9999px rgba(255,255,255,.96)
    }

    to {
        opacity: 1;
        filter: brightness(1);
        transform: scale(var(--kiosk-scale,1)) translateY(0);
        box-shadow: var(--shadow)
    }
}

@keyframes screenOutLight {
    from {
        opacity: 1;
        filter: brightness(1);
        transform: scale(var(--kiosk-scale,1)) translateY(0);
        box-shadow: var(--shadow)
    }

    to {
        opacity: 0;
        filter: brightness(1.08);
        transform: scale(calc(var(--kiosk-scale,1) * .995)) translateY(-8px);
        box-shadow: 0 0 0 9999px rgba(255,255,255,.96)
    }
}



.brand-card img {
    max-height: 90px;
}

.product-img img {
    width: 100%;
}

.detail-img img {
    width: 100%;
}

.hero-logo img {
    width: 100%;
}
