
/* ==========================================
   PANIFICIO SANT'AGATA - STILE V16
   ========================================== */

/* 01. Variabili e impostazioni generali */

:root {
    --ink: #21140e;
    --espresso: #160d09;
    --cream: #f6ead7;
    --paper: #fff8ec;
    --gold: #b77927;
    --line: rgba(85, 48, 25, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #160d09;
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
}

/* 02. Hero */

.hero {
    height: min(110vh, 1080px);
    min-height: 790px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #120b08 url('../../hero.png') center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(14, 8, 5, 0.84),
            rgba(14, 8, 5, 0.48) 48%,
            rgba(14, 8, 5, 0.32)
        ),
        linear-gradient(
            0deg,
            #160d09 0%,
            transparent 28%
        );
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 45%,
        transparent 0 28%,
        rgba(0, 0, 0, 0.34) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    width: min(390px, 62vw);
    filter: invert(1) sepia(0.2) brightness(1.35);
    margin-bottom: 34px;
}

.eyebrow {
    color: #e4b76f;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    color: #fff8ec;
    font-size: clamp(56px, 7.8vw, 112px);
    line-height: 0.84;
    letter-spacing: -0.045em;
    margin: 16px 0 24px;
    max-width: 850px;
}

.hero h1 em {
    font-weight: 500;
    color: #d89a43;
}

.hero p {
    color: #f4e7d6;
    max-width: 650px;
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.65;
    margin: 0;
}

/* 03. Indicatore Scopri i listini */

.scroll {
    white-space: nowrap;
    text-shadow:
        0 2px 10px #100905,
        0 0 26px #100905;
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    position: absolute;
    z-index: 3;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff8eb;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll i {
    height: 23px;
    width: 1px;
    background: linear-gradient(#d89a43, transparent);
    display: block;
}

/* 04. Sezione menu */

.menus {
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(183, 121, 39, 0.12),
            transparent 22%
        ),
        var(--cream);
    padding: 110px 0;
}

.menu {
    width: min(1050px, 90vw);
    margin: 0 auto 34px;
    background: rgba(255, 250, 240, 0.78);
    border: 1px solid rgba(118, 72, 36, 0.15);
    box-shadow: 0 28px 80px rgba(61, 32, 15, 0.09);
    border-radius: 30px;
    padding: clamp(34px, 5vw, 72px);
    position: relative;
    overflow: hidden;
}

.menu::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(183, 121, 39, 0.14);
    border-radius: 50%;
    right: -110px;
    top: -110px;
}

.menu-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
    margin-bottom: 18px;
}

.menu h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(45px, 6vw, 72px);
    line-height: 0.9;
    margin: 0;
    color: var(--espresso);
    letter-spacing: -0.035em;
}

.menu .menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(183, 121, 39, 0.22);
    background: rgba(183, 121, 39, 0.09);
    border-radius: 18px;
    font-size: 30px;
    flex-shrink: 0;
}

.menu .num {
    font-family: 'Cormorant Garamond', serif;
    color: rgba(183, 121, 39, 0.55);
    font-size: 32px;
}

.group-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 27px;
    margin: 30px 0 9px;
    color: #8c581e;
}

.row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 11px 0;
}

.row .name {
    font-size: 17px;
    font-weight: 650;
}

.row small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    color: #796657;
    margin-top: 3px;
}

.dots {
    border-bottom: 1px dotted rgba(59, 36, 24, 0.34);
    transform: translateY(-6px);
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.menu:nth-child(even) {
    transform: translateX(28px);
}

.menu:nth-child(odd) {
    transform: translateX(-28px);
}

/* 05. Footer */

footer {
    background: #130b08;
    color: #f9efdf;
    padding: 90px 5vw 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "SANT'AGATA";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(80px, 18vw, 260px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.025);
    white-space: nowrap;
}

.footer-logo {
    position: relative;
    width: min(250px, 55vw);
    filter: invert(1) brightness(1.5);
    margin-bottom: 35px;
}

.contacts {
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 14px 22px;
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.contact svg {
    width: 19px;
    height: 19px;
    stroke: #e4b76f;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.address {
    position: relative;
    margin: 28px auto 0;
    color: #d7c5b2;
    font-size: 15px;
}

.copy {
    position: relative;
    margin-top: 55px;
    color: #7f7066;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 06. Animazioni */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.on {
    opacity: 1;
    transform: translateY(0);
}

/* 07. Social */

.social-links {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 24px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.055);
    color: #e4b76f;
    transition:
        transform 0.25s,
        background 0.25s,
        border-color 0.25s;
}

.social-links a:hover {
    transform: translateY(-4px);
    background: rgba(183, 121, 39, 0.18);
    border-color: #e4b76f;
}

.social-links svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg {
    fill: currentColor;
    stroke: none;
}

/* 08. Informazioni e mappa footer */

.footer-meta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin: 27px auto 0;
    max-width: 940px;
}

.footer-meta .social-links {
    margin: 0;
    gap: 12px;
}

.footer-meta .address-card {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    padding: 15px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 18px;
    color: #f9efdf;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
    transition:
        border-color 0.25s,
        background 0.25s;
}

.footer-meta .address-card:hover {
    border-color: #e4b76f;
    background: rgba(183, 121, 39, 0.14);
}

.address-card svg {
    width: 24px;
    height: 24px;
    flex: none;
    stroke: #e4b76f;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-wrap {
    position: relative;
    max-width: 1040px;
    margin: 42px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    overflow: hidden;
    background: #271b13;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.23);
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    filter: saturate(0.8);
}

.map-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    color: #d7c5b2;
    font-size: 13px;
    text-align: left;
}

.map-actions a {
    color: #f1bd73;
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
}

.map-actions a:hover {
    text-decoration: underline;
}

/* 09. Navigazione categorie listini */

.category-shell {
    width: min(1100px, 92vw);
    margin: 0 auto 40px;
    text-align: center;
}

.category-kicker {
    color: #9c642e;
    font-size: 11px;
    letter-spacing: 0.26em;
    font-weight: 800;
    margin: 0 0 12px;
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(46px, 6vw, 78px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 30px;
    color: #24160e;
}

.category-title em {
    color: #a66c29;
    font-weight: 500;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-tab {
    appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 19px;
    border: 1px solid rgba(100, 64, 35, 0.22);
    border-radius: 17px;
    background: rgba(255, 251, 243, 0.75);
    color: #3b2516;
    font: 700 14px Manrope, system-ui, sans-serif;
    box-shadow: 0 8px 22px rgba(50, 28, 10, 0.04);
    transition:
        background 0.25s,
        color 0.25s,
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.category-tab:hover {
    transform: translateY(-3px);
    border-color: #b77927;
    box-shadow: 0 12px 24px rgba(50, 28, 10, 0.13);
}

.category-tab[aria-selected="true"] {
    background: #24160f;
    color: #fff6e7;
    border-color: #b77927;
    box-shadow: 0 14px 32px rgba(43, 23, 10, 0.2);
}

.category-tab:focus-visible {
    outline: 3px solid #c18431;
    outline-offset: 4px;
}

.category-emoji {
    font-size: 23px;
    line-height: 1;
}

.category-hint {
    color: #806f5c;
    font-size: 13px;
    margin: 23px 0 0;
}

.menu-panels {
    min-height: 0;
}

.menu-panel[hidden] {
    display: none !important;
}

.menu-panel {
    animation: menuAppear 0.4s ease both;
    margin-bottom: 0 !important;
    transform: none !important;
}

@keyframes menuAppear {
    from {
        opacity: 0;
        translate: 0 16px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* 10. Transizione cinematografica hero */

.hero {
    isolation: isolate;
    overflow: visible;
}

.hero::after {
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        circle at 50% 42%,
        transparent 0 28%,
        rgba(0, 0, 0, 0.32) 100%
    );
}

.hero::before {
    z-index: 0;
    background:
        linear-gradient(
            90deg,
            rgba(14, 8, 5, 0.84),
            rgba(14, 8, 5, 0.48) 48%,
            rgba(14, 8, 5, 0.32)
        ),
        linear-gradient(
            0deg,
            #160d09 0%,
            transparent 30%
        );
}

.hero-inner,
.scroll {
    z-index: 3;
}

.hero .hero-fade {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: -2px;
    height: clamp(90px, 15vh, 175px);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 28%,
        rgba(0, 0, 0, 0.58) 73%,
        #080605 100%
    );
}

.menus {
    position: relative;
    background: var(--cream);
    padding-top: 105px;
}

/* 11. Listini pizza */

.pizza-key {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 390px;
    margin: 0 0 14px auto;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #996b39;
    font-weight: 800;
}

.pizza-row {
    padding: 16px 0;
    border-bottom: 1px solid rgba(91, 56, 27, 0.13);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: center;
    gap: 20px;
}

.pizza-name strong {
    display: block;
    font-size: 16px;
    color: #2d1b10;
}

.pizza-name small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.55;
    color: #88745f;
}

.pizza-prices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    color: #3a2416;
    font-size: 15px;
}

.pizza-prices del {
    color: #a18d7d;
    font-size: 12px;
    font-weight: 500;
}

.pizza-prices .sale {
    color: #b36a20;
    font-size: 19px;
    white-space: nowrap;
}

/* 12. Promozioni */

.promotions {
    background: linear-gradient(
        135deg,
        #1b100c,
        #352014 55%,
        #1a100b
    );
    color: #fff2dd;
    padding: 100px 24px 115px;
}

.promotions-inner {
    max-width: 1140px;
    margin: auto;
}

.promo-kicker {
    text-align: center;
    letter-spacing: 0.25em;
    font-size: 12px;
    color: #e7ae65;
    font-weight: 800;
}

.promotions h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(46px, 6vw, 76px);
    margin: 10px 0 45px;
}

.promotions h2 em {
    color: #d9a15b;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-card {
    border: 1px solid rgba(233, 173, 100, 0.25);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.09),
        rgba(255, 255, 255, 0.025)
    );
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.25s,
        border-color 0.25s;
}

.promo-card:hover {
    transform: translateY(-6px);
    border-color: #d8a05c;
}

.promo-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: #f1bf80;
}

.promo-icon {
    font-size: 45px;
    margin: 22px 0 15px;
}

.promo-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    line-height: 1.04;
    margin: 0 0 16px;
}

.promo-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #e9d6c1;
}

.promo-card b {
    color: #fff7e7;
}

.promo-feature {
    background: linear-gradient(
        150deg,
        rgba(177, 107, 37, 0.27),
        rgba(255, 255, 255, 0.035)
    );
}

/* 13. Riquadri personalizzabili promozioni */

.festa-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0;
}

.festa-prices div {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    padding: 12px;
}

.festa-prices > div {
    min-width: 115px;
}

.festa-prices b,
.festa-prices strong {
    display: block;
}

.festa-prices b {
    font-size: 12px;
    color: #edd0a9;
}

.festa-prices strong {
    font-size: 26px;
    color: #f1ba70;
}

.festa-prices .offer-old-price {
    display: block;
    font-size: 13px;
    color: #d9b89a;
    margin-top: 4px;
    text-decoration: line-through;
}

/* 14. Informazioni aziendali */

.company-details {
    margin: 18px auto 0;
    max-width: 900px;
    text-align: center;
    color: #cdbca6;
    font-size: 12px;
    line-height: 1.9;
}

.company-details strong {
    color: #f6ead7;
}

.admin-status {
    padding: 12px;
    text-align: center;
    color: #cdbca6;
}

.pizza-promo-note {
    text-align: left;
    margin: 0 0 22px;
}

/* ==========================================
   15. RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 800px) {
    .pizza-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pizza-key {
        display: none;
    }

    .pizza-prices {
        background: rgba(114, 75, 40, 0.055);
        padding: 11px 3px;
        border-radius: 12px;
    }

    .pizza-prices span::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #947c65;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promotions {
        padding: 75px 20px;
    }

    .promo-card {
        padding: 27px;
    }
}

/* ==========================================
   16. RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 720px) {
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 100px 0 45px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-inner {
        width: 90%;
        padding-bottom: 0;
        margin: auto 0 40px;
        align-items: center;
        text-align: center;
    }

    .scroll {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .hero .hero-fade {
        height: 105px;
    }

    .menus {
        background: var(--cream);
        padding: 85px 0 65px;
    }

    .menu,
    .menu:nth-child(even),
    .menu:nth-child(odd) {
        transform: none;
        width: 92vw;
        border-radius: 22px;
    }

    .menu {
        padding: 30px 24px;
    }

    .menu-head {
        align-items: center;
    }

    .row {
        gap: 8px;
    }

    .row .name {
        font-size: 14px;
    }

    .price {
        font-size: 18px;
    }

    .dots {
        min-width: 10px;
    }

    .contacts {
        flex-direction: column;
        align-items: center;
    }

    .contact {
        width: min(340px, 90vw);
    }

    .footer-meta {
        flex-direction: column;
        gap: 18px;
    }

    .footer-meta .address-card {
        width: min(340px, 90vw);
    }

    .map-wrap iframe {
        height: 300px;
    }

    .map-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-actions a {
        white-space: normal;
    }

    .category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-tab {
        padding: 13px 11px;
        font-size: 12px;
        gap: 7px;
        text-align: left;
    }

    .category-emoji {
        font-size: 20px;
    }

    .category-shell {
        margin-bottom: 28px;
    }

    .category-title {
        margin-bottom: 22px;
    }
}

/* ==========================================
   17. DESKTOP
   ========================================== */

@media (min-width: 721px) {
    .scroll {
        bottom: 105px;
    }

    .hero-inner {
        padding-bottom: 135px;
    }
}

/* ==========================================
   18. ACCESSIBILITÀ
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .menu-panel {
        animation: none;
    }

    .category-tab {
        transition: none;
    }
}
/* 19. Footer pagine legali: link sempre cliccabili */
footer::before,
footer::after {
    pointer-events: none;
}

footer.legal-footer > a,
footer.legal-footer .links,
footer.legal-footer .links a {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

/* Cinque varianti promozionali selezionabili dal pannello */
.promo-card.promo-style-classico{background:linear-gradient(150deg,#392519,#24160f);border:1px solid #a77843;color:#fff2de}
.promo-card.promo-style-elegante{background:linear-gradient(150deg,#f7eddd,#e8d5b7);border:1px solid #c9a77a;color:#3b2a1c}
.promo-card.promo-style-elegante h3,.promo-card.promo-style-elegante p,.promo-card.promo-style-elegante .promo-label{color:#3b2a1c}
.promo-card.promo-style-vivace{background:linear-gradient(145deg,#9e382c,#dc784a);border:1px solid #eeaa79;color:#fff8ec}
.promo-card.promo-style-vivace h3,.promo-card.promo-style-vivace p,.promo-card.promo-style-vivace .promo-label{color:#fff8ec}
.promo-card.promo-style-minimal{background:#fffaf2;border:1px solid #d9d0c4;color:#34271e;box-shadow:none}
.promo-card.promo-style-minimal h3,.promo-card.promo-style-minimal p,.promo-card.promo-style-minimal .promo-label{color:#34271e}
.promo-card.promo-style-premium{background:radial-gradient(circle at top right,#674527,#1b100c 75%);border:1px solid #d6aa67;color:#f9e8ca;box-shadow:0 20px 45px #0003}
.promo-card.promo-style-premium h3,.promo-card.promo-style-premium p,.promo-card.promo-style-premium .promo-label{color:#f9e8ca}
.promo-card .offer-old-price{font-size:12px;opacity:.7;margin-left:8px}
.promo-card p{white-space:normal}
