/*
Theme Name: Twenty Twenty-Five La Serra
Theme URI: https://laserraeventigreen.com
Description: Child theme per La Serra Eventi Green con design botanico esclusivo, layout e tipografia fluida responsive.
Author: La Serra Eventi Green
Author URI: https://laserraeventigreen.com
Template: twentytwentyfive
Version: 1.0.3
Text Domain: twentytwentyfive-la-serra
*/

/* ==========================================================================
   Design System & Responsive Layout Engine: La Serra Eventi Green
   ========================================================================== */

:root {
    --serra-sand: #FAF8F5;
    --serra-cream: #F4EFEB;
    --serra-dark: #141815;
    --serra-moss: #1A281E;
    --serra-moss-light: #243A2B;
    --serra-sage: #7B8C57;
    --serra-sage-dark: #647345;
    --serra-sage-soft: #EBF0E6;
    --serra-gold: #C59A6F;
    --serra-gold-light: #E5CCA9;
    --serra-gold-dark: #9F7449;

    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-sans);
    background-color: var(--serra-sand);
    color: var(--serra-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

/* Base Headings */
h1, h2, h3, h4, .font-serif, .wp-block-heading {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-top: 0;
}

/* Responsive Containers */
.serra-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.2rem, 3vw, 2rem);
    padding-right: clamp(1.2rem, 3vw, 2rem);
}

.serra-container-narrow {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.2rem, 3vw, 2rem);
    padding-right: clamp(1.2rem, 3vw, 2rem);
}

/* ==========================================================================
   Header: Top Banner + Sticky Header + Mobile Drawer
   ========================================================================== */

/* Top announcement banner */
/* Top announcement banner (Fixed at the top) */
.serra-top-banner {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    z-index: 10000;
    width: 100%;
    background-color: var(--serra-moss);
    color: rgba(255,255,255,0.88);
    font-size: 12px;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    text-align: center;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Fixed main header (Attached below the top banner) */
.serra-sticky-header {
    position: fixed !important;
    top: 38px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26, 40, 30, 0.08);
    box-shadow: 0 2px 16px rgba(26, 40, 30, 0.06);
    width: 100%;
    box-sizing: border-box;
}

/* Admin bar offsets for logged in users */
body.admin-bar .serra-top-banner {
    top: 32px !important;
}
body.admin-bar .serra-sticky-header {
    top: 70px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .serra-top-banner {
        top: 46px !important;
    }
    body.admin-bar .serra-sticky-header {
        top: 84px !important;
    }
}

/* Compensation padding so content is never covered by fixed header */
body {
    padding-top: 112px !important;
}

@media screen and (max-width: 480px) {
    .serra-top-banner {
        height: 42px;
        font-size: 11px;
        padding: 0 12px;
    }
    .serra-sticky-header {
        top: 42px !important;
    }
    body {
        padding-top: 116px !important;
    }
    body.admin-bar .serra-sticky-header {
        top: 88px !important;
    }
}

/* Header inner bar */
.serra-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

/* Logo */
.serra-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.serra-logo-img {
    height: 44px;
    width: auto;
    display: block;
}

/* Desktop navigation */
.serra-desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.serra-nav-link {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--serra-moss);
    text-decoration: none;
    padding: 7px 11px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.01em;
}

.serra-nav-link:hover {
    background: var(--serra-sage-soft);
    color: var(--serra-sage-dark);
}

/* Header action CTAs */
.serra-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.serra-header-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--serra-moss);
    text-decoration: none;
    padding: 8px 14px;
    border: 1.5px solid rgba(26, 40, 30, 0.2);
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.serra-header-cta-secondary:hover {
    background: var(--serra-moss);
    color: #fff;
    border-color: var(--serra-moss);
}

.serra-header-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    background: var(--serra-sage);
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.serra-header-cta-primary:hover {
    background: var(--serra-sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(123, 140, 87, 0.35);
}

/* Mobile hamburger button */
.serra-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--serra-moss);
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.serra-mobile-btn:hover {
    background: var(--serra-sage-soft);
}

/* Mobile drawer */
.serra-mobile-drawer {
    display: none;
    padding: 20px clamp(1.2rem, 4vw, 2rem);
    background: rgba(250, 248, 245, 0.98);
    border-top: 1px solid rgba(26, 40, 30, 0.08);
}

.serra-mobile-drawer.is-open {
    display: block !important;
}

/* ==========================================================================
   Responsive Header Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .serra-desktop-nav {
        display: none;
    }
    .serra-header-cta-secondary {
        display: none;
    }
    .serra-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .serra-header-cta-primary span:last-child {
        display: none;
    }
    .serra-top-banner {
        font-size: 11px;
        padding: 8px 12px;
    }
    .serra-logo-img {
        height: 38px;
    }
}

/* ==========================================================================
   Glassmorphism Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 15px 35px -10px rgba(26, 40, 30, 0.09) !important;
}

.glass-dark {
    background: rgba(20, 24, 21, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4) !important;
}

.bg-grid-botanical {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(123, 140, 87, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(123, 140, 87, 0.06) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--serra-sand);
}
::-webkit-scrollbar-thumb {
    background: var(--serra-moss-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--serra-sage);
}

/* Header & Nav */
.serra-top-banner {
    background-color: #1A281E;
    color: #F4EFEB;
    font-size: 12px;
    padding: 9px 16px;
    text-align: center;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Second definition aligned */
.serra-sticky-header {
    position: fixed !important;
    top: 38px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999;
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(26, 40, 30, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.serra-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    max-width: 100%;
    height: 74px;
    box-sizing: border-box;
}

.serra-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.serra-logo-img {
    height: 48px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    display: block;
}

.serra-desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.serra-nav-link {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--serra-moss);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.serra-nav-link:hover {
    color: var(--serra-sage);
}

.serra-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.serra-header-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(26, 40, 30, 0.2);
    color: #1A281E;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.serra-header-cta-secondary:hover {
    background: rgba(26, 40, 30, 0.05);
}

.serra-header-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 9999px;
    background-color: #7B8C57;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(123, 140, 87, 0.35);
    white-space: nowrap;
    transition: all 0.2s ease;
}
.serra-header-cta-primary:hover {
    background-color: #647345;
}

.serra-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--serra-moss);
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.serra-mobile-drawer {
    display: none;
    background: var(--serra-sand);
    border-top: 1px solid rgba(26, 40, 30, 0.1);
    padding: 18px 20px;
    box-sizing: border-box;
    width: 100%;
}
.serra-mobile-drawer.is-open {
    display: block !important;
}

@media (max-width: 991px) {
    .serra-desktop-nav {
        display: none !important;
    }
    .serra-header-cta-secondary {
        display: none !important;
    }
    .serra-mobile-btn {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .serra-header-bar {
        height: 62px;
    }
    .serra-logo-img {
        height: 36px;
        max-width: 130px;
    }
    .serra-header-cta-primary {
        padding: 7px 13px;
        font-size: 10px;
        letter-spacing: 0.04em;
    }
    .serra-top-banner {
        font-size: 11px;
        padding: 7px 10px;
    }
}

@media (max-width: 375px) {
    .serra-header-cta-primary {
        display: none !important;
    }
}

/* Hero CRO Qualifier Box */
.cro-hero-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 9999px;
    padding: 10px 14px 10px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.85);
    max-width: 920px;
    margin: 0 auto;
}

.cro-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 1fr 1.15fr;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.cro-field {
    text-align: left;
    padding-right: 14px;
    border-right: 1px solid rgba(26, 40, 30, 0.12);
}

@media (max-width: 767px) {
    .cro-hero-box {
        border-radius: 24px;
        padding: 16px;
    }
    .cro-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .cro-field {
        border-right: none;
        border-bottom: 1px solid rgba(26, 40, 30, 0.1);
        padding-right: 0;
        padding-bottom: 8px;
    }
}

/* Trust Numbers & Stats Grid */
.serra-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.serra-stat-item {
    padding: 10px;
}

@media (min-width: 768px) {
    .serra-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    .serra-stat-item:not(:last-child) {
        border-right: 1px solid rgba(26, 40, 30, 0.1);
    }
}

/* Asymmetric 7 / 5 Grid Systems */
.serra-grid-7-5 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .serra-grid-7-5 {
        grid-template-columns: 7fr 5fr;
    }
}

.serra-grid-5-7 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .serra-grid-5-7 {
        grid-template-columns: 5fr 7fr;
    }
}

.serra-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .serra-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Gli Spazi Card */
.serra-space-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px -15px rgba(26, 40, 30, 0.08);
    border: 1px solid rgba(26, 40, 30, 0.1);
    display: grid;
    grid-template-columns: 1fr;
}

.serra-space-image-wrapper {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.serra-space-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

@media (min-width: 992px) {
    .serra-space-card {
        grid-template-columns: 7fr 5fr;
    }
}

/* Tabs */
.space-tab-btn {
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(26, 40, 30, 0.15);
    background: #ffffff;
    color: var(--serra-moss);
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.space-tab-btn.active {
    background-color: var(--serra-moss) !important;
    color: #ffffff !important;
    border-color: var(--serra-moss) !important;
    box-shadow: 0 6px 18px -4px rgba(26, 40, 30, 0.25);
}

/* Forms & Inputs */
.serra-input {
    width: 100%;
    background-color: var(--serra-sand);
    border: 1px solid rgba(26, 40, 30, 0.15);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.85rem;
    color: var(--serra-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}
.serra-input:focus {
    border-color: var(--serra-sage);
    box-shadow: 0 0 0 3px rgba(123, 140, 87, 0.15);
}

/* Accordion details */
details.serra-faq-item {
    background: var(--serra-sand);
    border: 1px solid rgba(26, 40, 30, 0.12);
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}
details.serra-faq-item[open] {
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(26, 40, 30, 0.06);
    border-color: var(--serra-sage);
}
details.serra-faq-item summary {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--serra-moss);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
details.serra-faq-item summary::-webkit-details-marker {
    display: none;
}
details.serra-faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--serra-sage);
    font-weight: 400;
    transition: transform 0.2s ease;
}
details.serra-faq-item[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}
details.serra-faq-item .faq-content {
    margin-top: 12px;
    font-size: 0.875rem;
    color: rgba(20, 24, 21, 0.8);
    line-height: 1.65;
}

/* Footer Grid */
.serra-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .serra-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Mobile Sticky Bottom Bar */
.serra-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 40, 30, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .serra-mobile-bar {
        display: flex;
        gap: 10px;
    }
    body {
        padding-bottom: 68px !important;
    }
}

/* ==========================================================================
   Fluent Form PRO Custom Styling: La Serra Eventi Green
   ========================================================================== */
.serra-fluentform-card {
    background: #ffffff;
    border-radius: 28px;
    padding: clamp(1.8rem, 4.5vw, 3.2rem);
    box-shadow: 0 20px 50px -15px rgba(26, 40, 30, 0.08);
    border: 1px solid rgba(26, 40, 30, 0.08);
    position: relative;
}

.fluentform.fluentform_wrapper_3 .ff-el-form-top .ff-el-input-label,
.la-serra-fluent-form .ff-el-input-label {
    font-family: var(--font-sans);
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1A281E !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 6px !important;
    display: block;
}

.la-serra-fluent-form .ff-el-asterisk {
    color: #7B8C57 !important;
    font-weight: bold;
    margin-left: 3px;
}

.la-serra-fluent-form input[type="text"],
.la-serra-fluent-form input[type="email"],
.la-serra-fluent-form input[type="tel"],
.la-serra-fluent-form input[type="date"],
.la-serra-fluent-form input[type="number"],
.la-serra-fluent-form select,
.la-serra-fluent-form textarea {
    width: 100% !important;
    background-color: #FAF8F5 !important;
    border: 1.5px solid rgba(26, 40, 30, 0.12) !important;
    border-radius: 14px !important;
    padding: 13px 18px !important;
    font-size: 13.5px !important;
    font-family: var(--font-sans) !important;
    color: #1A281E !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

.la-serra-fluent-form input:focus,
.la-serra-fluent-form select:focus,
.la-serra-fluent-form textarea:focus {
    background-color: #ffffff !important;
    border-color: #7B8C57 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(123, 140, 87, 0.18) !important;
}

.la-serra-fluent-form .ff-el-form-check {
    margin-bottom: 10px !important;
}

.la-serra-fluent-form .ff-el-form-check-label {
    font-size: 13px !important;
    color: #1A281E !important;
    cursor: pointer;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.la-serra-fluent-form .ff-el-form-check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #7B8C57 !important;
    cursor: pointer;
    border-radius: 4px;
}

.la-serra-fluent-form .ff_tc_label {
    padding: 14px 18px !important;
    background: #FAF8F5 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(26, 40, 30, 0.08) !important;
    font-size: 12px !important;
    color: rgba(20, 24, 21, 0.75) !important;
    line-height: 1.5 !important;
}

.la-serra-fluent-form .ff-btn-submit {
    background: #1A281E !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 16px 42px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px -5px rgba(26, 40, 30, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 14px !important;
}

.la-serra-fluent-form .ff-btn-submit:hover {
    background: #7B8C57 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px -5px rgba(123, 140, 87, 0.4) !important;
}
