/* Ristorante Suite — frontend
   Le variabili sono sovrascrivibili dal tema. */

.rsuite-form-wrap,
.rsuite-menu {
    --rs-ink: #0b0b0b;
    --rs-paper: #f4f1ec;
    --rs-accent: #c8102e;
    --rs-muted: #8b8b8b;
    --rs-line: rgba(244, 241, 236, .22);
    --rs-radius: 2px;

    color-scheme: dark;
    color: var(--rs-paper);
}

/* ------------------------------ FORM ------------------------------ */

.rsuite-form-wrap { max-width: 720px; }

.rsuite-hp {
    position: absolute !important;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.rsuite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rsuite-grid-2 { grid-template-columns: repeat(2, 1fr); }

.rsuite-field { margin: 0 0 16px; display: flex; flex-direction: column; }

.rsuite-field label,
.rsuite-check label {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rsuite-field input,
.rsuite-field select,
.rsuite-field textarea {
    width: 100%;
    background: transparent;
    color: inherit;
    border: 1px solid var(--rs-line);
    border-radius: var(--rs-radius);
    padding: 12px 14px;
    font: inherit;
    font-size: 16px; /* evita lo zoom su iOS */
}

.rsuite-field input:focus,
.rsuite-field select:focus,
.rsuite-field textarea:focus {
    outline: 2px solid var(--rs-accent);
    outline-offset: 1px;
    border-color: var(--rs-accent);
}

.rsuite-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23f4f1ec' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.rsuite-field select:disabled { opacity: .5; }

/* Su fondo chiaro il testo dei campi deve restare leggibile anche
   se il tema non definisce le variabili. */
.rsuite-field input::placeholder,
.rsuite-field textarea::placeholder { color: var(--rs-muted); opacity: 1; }

.rsuite-field.has-error input,
.rsuite-field.has-error select,
.rsuite-field.has-error textarea { border-color: var(--rs-accent); }

.rsuite-error {
    color: var(--rs-accent);
    font-size: 13px;
    margin-top: 6px;
    min-height: 1px;
}

.rsuite-check {
    display: flex;
    flex-direction: column;
    margin: 0 0 12px;
}

.rsuite-check label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.rsuite-check input { margin-top: 3px; flex: 0 0 auto; }

.rsuite-actions { margin: 22px 0 10px; }

.rsuite-submit,
.rsuite-wa {
    display: inline-block;
    background: var(--rs-accent);
    color: #fff;
    border: 0;
    border-radius: var(--rs-radius);
    padding: 16px 32px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.rsuite-submit:hover,
.rsuite-wa:hover { filter: brightness(1.12); }
.rsuite-submit:disabled { opacity: .6; cursor: wait; }

.rsuite-nota { font-size: 13px; color: var(--rs-muted); }
.rsuite-nota a { color: inherit; }

.rsuite-feedback:not(:empty) {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 3px solid var(--rs-accent);
    font-size: 14px;
}

.rsuite-feedback.is-warn { border-left-color: #e0a800; }

.rsuite-done h3 {
    font-size: clamp(24px, 4vw, 34px);
    margin: 0 0 8px;
}

/* ------------------------------ MENU ------------------------------ */

.rsuite-menu { max-width: 880px; margin: 0 auto; }

/* Filtri */

.rsuite-filtri {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding-bottom: 22px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--rs-line);
}

.rsuite-chip {
    background: transparent;
    color: inherit;
    border: 1px solid var(--rs-line);
    border-radius: 999px;
    padding: 9px 18px;
    font: inherit;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.rsuite-chip:hover { border-color: var(--rs-paper); }

.rsuite-chip.is-active {
    background: var(--rs-paper);
    border-color: var(--rs-paper);
    color: var(--rs-ink);
}

.rsuite-chip-glutine.is-active {
    background: var(--rs-accent);
    border-color: var(--rs-accent);
    color: #fff;
}

.rsuite-apri-tutto {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--rs-muted);
    font: inherit;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.rsuite-apri-tutto:hover { color: var(--rs-paper); }

.rsuite-filtro-esito:not(:empty) {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--rs-muted);
}

/* Testa del menu */

.rsuite-presentazione {
    padding: 0 0 30px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--rs-line);
}

.rsuite-presentazione h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3.6vw, 32px);
    text-transform: uppercase;
    letter-spacing: .01em;
}

.rsuite-presentazione p { margin: 0 0 10px; color: #d8d4cd; }
.rsuite-presentazione p:last-child { margin-bottom: 0; }

/* Categoria a scomparsa */

.rsuite-cat { border-bottom: 1px solid var(--rs-line); }
.rsuite-cat[hidden] { display: none; }

.rsuite-cat-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 24px 2px;
    cursor: pointer;
    list-style: none;
}

.rsuite-cat-head::-webkit-details-marker { display: none; }
.rsuite-cat-head:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 4px; }

.rsuite-cat-testo { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.rsuite-cat-nome {
    font-size: clamp(24px, 4.4vw, 40px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.rsuite-payoff {
    color: var(--rs-accent);
    font-size: 13px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.rsuite-cat-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.rsuite-conta {
    font-size: 13px;
    color: var(--rs-muted);
    font-variant-numeric: tabular-nums;
}

/* Il segno + che diventa − */
.rsuite-segno {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.rsuite-segno::before,
.rsuite-segno::after {
    content: '';
    position: absolute;
    background: var(--rs-accent);
    transition: transform .22s ease, opacity .22s ease;
}

.rsuite-segno::before { top: 8px; left: 0; width: 18px; height: 2px; }
.rsuite-segno::after  { left: 8px; top: 0; width: 2px; height: 18px; }

.rsuite-cat[open] .rsuite-segno::after { transform: scaleY(0); opacity: 0; }

.rsuite-cat-corpo { padding-bottom: 26px; }

/* Sottocategorie: es. Vodka e Whisky dentro Distillati */

.rsuite-livello-2 {
    border-bottom: 0;
    border-top: 1px solid rgba(139, 139, 139, .22);
    margin-left: 2px;
}

.rsuite-livello-2 > .rsuite-cat-head { padding: 15px 2px; }

.rsuite-livello-2 .rsuite-cat-nome {
    font-size: clamp(17px, 2.4vw, 22px);
    font-family: var(--testo, inherit);
    font-weight: 600;
    letter-spacing: .1em;
}

.rsuite-livello-2 .rsuite-segno { width: 14px; height: 14px; }
.rsuite-livello-2 .rsuite-segno::before { top: 6px; width: 14px; }
.rsuite-livello-2 .rsuite-segno::after { left: 6px; height: 14px; }
.rsuite-livello-2 .rsuite-cat-corpo { padding-bottom: 14px; }

/* Categoria sempre aperta (senza tendina) */

.rsuite-cat-flat { border-bottom: 1px solid var(--rs-line); }
.rsuite-cat-head-flat { cursor: default; }

@media (prefers-reduced-motion: no-preference) {
    .rsuite-cat[open] .rsuite-cat-corpo {
        animation: rsuiteApri .28s ease;
    }
    @keyframes rsuiteApri {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: none; }
    }
}

.rsuite-cat-desc {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 2px solid var(--rs-accent);
    color: #d8d4cd;
    font-size: 15px;
}

/* Piatti */

.rsuite-piatti { list-style: none; margin: 0; padding: 0; }
.rsuite-piatto[hidden] { display: none; }

.rsuite-piatto {
    display: flex;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid rgba(139, 139, 139, .18);
}

.rsuite-piatto:first-child { border-top: 0; }

.rsuite-piatto-img { flex: 0 0 92px; }

.rsuite-piatto-img img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: var(--rs-radius);
    display: block;
}

.rsuite-piatto-body { flex: 1 1 auto; min-width: 0; }

.rsuite-piatto-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.rsuite-piatto-top h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.rsuite-dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted var(--rs-line);
    transform: translateY(-4px);
}

.rsuite-prezzo {
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rsuite-prezzo small {
    display: block;
    text-align: right;
    font-weight: 400;
    font-size: 11px;
    color: var(--rs-muted);
}

.rsuite-piatto-desc { margin: 6px 0 0; line-height: 1.55; }

.rsuite-ingredienti {
    margin: 4px 0 0;
    color: var(--rs-muted);
    font-size: 14px;
}

/* Pallini intensità dei cocktail */

.rsuite-intensita { margin: 8px 0 0; display: flex; gap: 5px; }

.rsuite-intensita span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--rs-muted);
}

.rsuite-intensita span.on { background: var(--rs-accent); border-color: var(--rs-accent); }

.rsuite-opzioni {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--rs-paper);
    border-left: 2px solid var(--rs-accent);
    padding-left: 10px;
}

.rsuite-tag-row { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }

.rsuite-tag {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid var(--rs-line);
    border-radius: 999px;
}

.rsuite-tag-gf {
    background: var(--rs-accent);
    border-color: var(--rs-accent);
    color: #fff;
    font-weight: 600;
}

.rsuite-tag-ok { border-color: rgba(244, 241, 236, .5); }
.rsuite-tag-all { color: var(--rs-muted); text-transform: none; letter-spacing: .02em; }

.rsuite-menu-foot {
    text-align: center;
    padding-top: 30px;
    color: var(--rs-muted);
    font-size: 14px;
}

.rsuite-legale { font-size: 12px; max-width: 62ch; margin: 10px auto 0; opacity: .75; }

/* ---------------------------- RESPONSIVE ---------------------------- */

@media (max-width: 640px) {
    .rsuite-grid,
    .rsuite-grid-2 { grid-template-columns: 1fr; gap: 0; }

    .rsuite-cat-head { padding: 18px 2px; gap: 10px; }
    .rsuite-cat-testo { flex-direction: column; gap: 4px; }
    .rsuite-filtri { gap: 6px; }
    .rsuite-chip { padding: 8px 13px; font-size: 12px; }
    .rsuite-apri-tutto { margin-left: 0; width: 100%; text-align: left; padding-top: 6px; }
    .rsuite-piatto { gap: 12px; }
    .rsuite-piatto-img, .rsuite-piatto-img img { flex-basis: 68px; width: 68px; height: 68px; }
    .rsuite-submit, .rsuite-wa { width: 100%; text-align: center; }
}

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