/*
 * ST'ORTO Design System
 * =====================
 * Overrides Elementor's global kit (post-8.css) for pages in the
 * /storto ecosystem: main landing (3053), menu (3284), FAQ (3253),
 * and any future child pages.
 *
 * Loaded by mu-plugin storto-branding.php — only on ST'ORTO pages.
 */


/* ===================================================================
   1. @FONT-FACE — Custom brand fonts
   =================================================================== */

@font-face {
    font-family: 'Piepie';
    src: url('../../../uploads/2026/06/Piepie-W01-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alte Haas Grotesk';
    src: url('../../../uploads/2026/06/AlteHaasGroteskRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alte Haas Grotesk';
    src: url('../../../uploads/2026/06/AlteHaasGroteskBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Mansalva — loaded from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Mansalva&display=swap');


/* ===================================================================
   2. DESIGN TOKENS — CSS Custom Properties
   =================================================================== */

:root {
    /* ---- Backgrounds ---- */
    --storto-bg-primary:   #f5ede0;
    --storto-bg-warm:      #efe3d0;
    --storto-bg-dark:      #1a120d;
    --storto-bg-light:     #faf6ef;

    /* ---- Earth tones ---- */
    --storto-earth-900:    #1a120d;
    --storto-earth-800:    #2c1e14;
    --storto-earth-700:    #3d2b1f;
    --storto-earth-500:    #7a5a3e;

    /* ---- Olive ---- */
    --storto-olive-900:    #1c2416;
    --storto-olive-700:    #3e5130;
    --storto-olive-500:    #6b8a58;
    --storto-olive-300:    #a8c498;

    /* ---- Terracotta ---- */
    --storto-terra:        #c4713a;
    --storto-terra-light:  #d68b52;

    /* ---- Lantern / Gold ---- */
    --storto-lantern:      #d4a55a;
    --storto-lantern-soft: #e8c88a;

    /* ---- Text ---- */
    --storto-text-primary:   #1a120d;
    --storto-text-secondary: #5c3d28;
    --storto-text-muted:     #8a7560;
    --storto-text-on-dark:   #f5ede0;

    /* ---- Fonts ---- */
    --storto-font-display:   'Piepie', 'Impact', sans-serif;
    --storto-font-hand:      'Mansalva', cursive;
    --storto-font-body:      'Alte Haas Grotesk', 'Helvetica Neue', Arial, sans-serif;

    /* ---- Spacing ---- */
    --storto-section-gap:    clamp(3rem, 8vw, 6rem);
    --storto-content-max:    1100px;
    --storto-pad-inline:     clamp(1.25rem, 4vw, 2rem);
    --storto-card-radius:    1rem;
    --storto-btn-radius:     999px;
}


/* ===================================================================
   3. ELEMENTOR KIT OVERRIDES
   =================================================================== */

body.elementor-page-3053,
body.elementor-page-3253,
body.elementor-page-3284,
body.parent-pageid-3053 {
    /* Override Casale color palette */
    --e-global-color-primary:   var(--storto-olive-500);
    --e-global-color-secondary: var(--storto-earth-900);
    --e-global-color-text:      var(--storto-text-secondary);
    --e-global-color-accent:    var(--storto-terra);

    /* Override Casale typography */
    --e-global-typography-primary-font-family:   'Piepie';
    --e-global-typography-secondary-font-family:  'Mansalva';
    --e-global-typography-text-font-family:       'Alte Haas Grotesk';
    --e-global-typography-accent-font-family:     'Piepie';

    /* Page background */
    background-color: var(--storto-bg-primary) !important;
    color: var(--storto-text-primary);
    font-family: var(--storto-font-body);
}


/* ===================================================================
   4. BASE TYPOGRAPHY
   =================================================================== */

body.elementor-page-3053 h1,
body.elementor-page-3053 h2,
body.elementor-page-3253 h1,
body.elementor-page-3253 h2,
body.elementor-page-3284 h1,
body.elementor-page-3284 h2,
body.parent-pageid-3053 h1,
body.parent-pageid-3053 h2 {
    font-family: var(--storto-font-display);
    color: var(--storto-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

body.elementor-page-3053 h3,
body.elementor-page-3253 h3,
body.elementor-page-3284 h3,
body.parent-pageid-3053 h3 {
    font-family: var(--storto-font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

body.elementor-page-3053 p,
body.elementor-page-3253 p,
body.elementor-page-3284 p,
body.parent-pageid-3053 p {
    font-family: var(--storto-font-body);
    color: var(--storto-text-secondary);
    line-height: 1.6;
}


/* ===================================================================
   5. UTILITY CLASSES — for use in Elementor HTML widgets
   =================================================================== */

/* ---- Section wrapper ---- */
.storto-section {
    width: 100%;
    padding: var(--storto-section-gap) var(--storto-pad-inline);
    box-sizing: border-box;
}

.storto-section__inner {
    max-width: var(--storto-content-max);
    margin: 0 auto;
}

/* ---- Label / handwritten tag ---- */
.storto-label {
    font-family: var(--storto-font-hand);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--storto-terra);
    margin-bottom: 0.5rem;
}

.storto-label--light {
    color: var(--storto-lantern-soft);
}

/* ---- Hero ---- */
.storto-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem var(--storto-pad-inline);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.storto-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 18, 13, 0.05) 0%,
        rgba(26, 18, 13, 0.45) 50%,
        rgba(26, 18, 13, 0.92) 100%
    );
    pointer-events: none;
}

.storto-hero__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.storto-hero__title {
    font-family: var(--storto-font-display);
    font-size: clamp(3.5rem, 12vw, 6rem);
    color: var(--storto-bg-primary);
    line-height: 0.9;
    margin: 0.5rem 0;
}

.storto-hero__subtitle {
    font-family: var(--storto-font-body);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--storto-olive-300);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.storto-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.storto-badge {
    font-family: var(--storto-font-body);
    font-size: 0.78rem;
    color: var(--storto-bg-primary);
    background: rgba(245, 237, 224, 0.1);
    border: 1px solid rgba(245, 237, 224, 0.18);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

/* ---- Buttons ---- */
.storto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--storto-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--storto-btn-radius);
    padding: 14px 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-height: 52px;
}

.storto-btn--primary {
    background: var(--storto-terra);
    color: var(--storto-bg-primary);
}

.storto-btn--primary:hover {
    background: var(--storto-terra-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 113, 58, 0.3);
}

.storto-btn--ghost {
    background: transparent;
    color: var(--storto-bg-primary);
    border: 1px solid rgba(245, 237, 224, 0.25);
}

.storto-btn--ghost:hover {
    background: rgba(245, 237, 224, 0.08);
    border-color: rgba(245, 237, 224, 0.4);
}

.storto-btn--gold {
    background: var(--storto-lantern);
    color: var(--storto-earth-900);
}

.storto-btn--gold:hover {
    background: var(--storto-lantern-soft);
}

.storto-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ---- Zone Cards ---- */
.storto-zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .storto-zones {
        grid-template-columns: 1fr;
    }
}

.storto-zone-card {
    position: relative;
    min-height: 480px;
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.storto-zone-card:hover {
    transform: translateY(-6px);
}

.storto-zone-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 18, 13, 0) 30%,
        rgba(26, 18, 13, 0.85) 100%
    );
    z-index: 0;
}

.storto-zone-card__content {
    position: relative;
    z-index: 1;
}

.storto-zone-card__label {
    font-family: var(--storto-font-hand);
    font-size: 0.85rem;
    background: var(--storto-lantern-soft);
    color: var(--storto-earth-900);
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.5rem;
}

.storto-zone-card h3 {
    color: var(--storto-bg-primary);
    margin: 0.25rem 0 0.5rem;
    font-size: 1.6rem;
}

.storto-zone-card p {
    color: rgba(245, 237, 224, 0.85);
    font-size: 0.88rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.storto-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.storto-chip {
    font-family: var(--storto-font-body);
    font-size: 0.72rem;
    background: rgba(245, 237, 224, 0.1);
    color: var(--storto-bg-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    border: 1px solid rgba(245, 237, 224, 0.12);
}

/* ---- Quick Decision Section ---- */
.storto-decision {
    background: var(--storto-earth-800);
}

.storto-decision-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .storto-decision-cards {
        grid-template-columns: 1fr;
    }
}

.storto-decision-card {
    background: rgba(245, 237, 224, 0.04);
    border: 1px solid rgba(245, 237, 224, 0.07);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: background 0.3s;
}

.storto-decision-card:hover {
    background: rgba(245, 237, 224, 0.08);
}

.storto-decision-card__emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.storto-decision-card__title {
    font-family: var(--storto-font-hand);
    color: var(--storto-lantern-soft);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.storto-decision-card p {
    color: rgba(245, 237, 224, 0.7);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

/* ---- Photo Strip ---- */
.storto-photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: 280px;
    background: var(--storto-earth-900);
    overflow: hidden;
}

@media (max-width: 768px) {
    .storto-photo-strip {
        grid-template-columns: repeat(2, 1fr);
        height: 180px;
    }
}

.storto-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: filter 0.4s ease, transform 0.6s ease;
}

.storto-photo-strip img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* ---- Menu Section ---- */
.storto-menu-section {
    background: var(--storto-bg-light);
}

/* ---- La Festa del Lunedì ---- */
.storto-festa {
    background: var(--storto-earth-900);
}

.storto-festa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .storto-festa-grid {
        grid-template-columns: 1fr;
    }
}

.storto-festa img {
    width: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
}

.storto-festa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.storto-festa-tag {
    font-family: var(--storto-font-body);
    font-size: 0.78rem;
    background: rgba(212, 165, 90, 0.12);
    color: var(--storto-lantern-soft);
    border: 1px solid rgba(212, 165, 90, 0.2);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
}

/* ---- FAQ Accordion ---- */
.storto-faq details {
    border-bottom: 1px solid rgba(196, 113, 58, 0.15);
}

.storto-faq summary {
    font-family: var(--storto-font-body);
    font-weight: 700;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--storto-text-primary);
    font-size: 1rem;
}

.storto-faq summary::-webkit-details-marker {
    display: none;
}

.storto-faq summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--storto-terra);
    transition: transform 0.3s;
}

.storto-faq details[open] summary::after {
    transform: rotate(45deg);
}

.storto-faq details div {
    padding: 0 0 1.25rem;
    color: var(--storto-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- Contacts ---- */
.storto-contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .storto-contacts-grid {
        grid-template-columns: 1fr;
    }
}

.storto-contact-block {
    margin-bottom: 1.5rem;
}

.storto-contact-block__icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.storto-contact-block h4 {
    font-family: var(--storto-font-body);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--storto-text-muted);
    margin: 0 0 0.5rem;
}

.storto-contact-block p,
.storto-contact-block a {
    font-size: 1rem;
    color: var(--storto-text-primary);
    text-decoration: none;
}

.storto-contact-block a:hover {
    color: var(--storto-terra);
}

.storto-map-embed {
    border-radius: 1.25rem;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.storto-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 350px;
}

/* ---- Instagram Section ---- */
.storto-ig {
    background: var(--storto-olive-900);
}

.storto-ig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .storto-ig-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.storto-ig-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.3s;
}

.storto-ig-grid img:hover {
    transform: scale(1.04);
}

/* ---- Footer ---- */
.storto-footer {
    background: var(--storto-earth-900);
    text-align: center;
    padding: 3rem var(--storto-pad-inline);
}

.storto-footer__logo {
    font-family: var(--storto-font-display);
    font-size: 2rem;
    color: var(--storto-bg-primary);
    margin-bottom: 0.75rem;
}

.storto-footer__nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.storto-footer__nav a {
    font-family: var(--storto-font-body);
    font-size: 0.85rem;
    color: rgba(245, 237, 224, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.storto-footer__nav a:hover {
    color: var(--storto-lantern-soft);
}

.storto-footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.storto-footer__social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 237, 224, 0.06);
    border: 1px solid rgba(245, 237, 224, 0.1);
    color: var(--storto-bg-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s, border-color 0.3s;
}

.storto-footer__social a:hover {
    background: rgba(245, 237, 224, 0.12);
    border-color: rgba(245, 237, 224, 0.2);
}

.storto-footer__copy {
    font-family: var(--storto-font-body);
    font-size: 0.75rem;
    color: rgba(245, 237, 224, 0.35);
}

/* ---- Sticky Mobile CTA ---- */
.storto-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(26, 18, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 165, 90, 0.12);
}

@media (max-width: 768px) {
    .storto-mobile-cta {
        display: block;
    }
    body.elementor-page-3053,
    body.elementor-page-3253,
    body.elementor-page-3284,
    body.parent-pageid-3053 {
        padding-bottom: 72px;
    }
}

.storto-mobile-cta__inner {
    display: flex;
    gap: 8px;
    max-width: var(--storto-content-max);
    margin: 0 auto;
}

.storto-mobile-cta__btn {
    flex: 1;
    text-align: center;
    padding: 11px;
    border-radius: 12px;
    font-family: var(--storto-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.storto-mobile-cta__btn--primary {
    background: var(--storto-terra);
    color: var(--storto-bg-primary);
}

.storto-mobile-cta__btn--secondary {
    background: rgba(245, 237, 224, 0.08);
    color: var(--storto-bg-primary);
    border: 1px solid rgba(245, 237, 224, 0.15);
}

/* ---- Smooth scroll ---- */
html {
    scroll-behavior: smooth;
}
