/* =========================================================
   siripara.it — Stili condivisi
   Base, header, footer, glass-card, menu mobile
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #F3EEE6;
    color: #1D2D3A;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }

/* SFONDO CON I TRATTI NEGLI ANGOLI */
.bg-brush-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    object-fit: cover;
    opacity: 0.85;
}

/* EFFETTO LIQUID GLASS */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-radius: 28px;
}

/* HEADER FISSO IN ALTO */
header {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 35px;
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1D2D3A;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: #5FB45D; }

.nav-links a.active { color: #5FB45D; }

.nav-btn {
    background: rgba(95, 180, 93, 0.15);
    border: 1px solid rgba(95, 180, 93, 0.4);
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 700;
    color: #1D2D3A;
    font-size: 1.1rem;
}

/* PULSANTE HAMBURGER (mobile) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #1D2D3A;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* MENU MOBILE A SCHERMO INTERO */
.mobile-menu-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(243, 238, 230, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay a {
    text-decoration: none;
    color: #1D2D3A;
    font-weight: 700;
    font-size: 1.4rem;
}

.mobile-menu-overlay a.mobile-cta {
    background: rgba(95, 180, 93, 0.15);
    border: 1px solid rgba(95, 180, 93, 0.4);
    padding: 12px 30px;
    border-radius: 50px;
    color: #1D2D3A;
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger-btn { display: flex; }
}

/* FOOTER */
footer {
    background-color: #1D2D3A;
    color: #F3EEE6;
    text-align: center;
    padding: 50px 20px 30px 20px;
    border-radius: 30px 30px 0 0;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info p {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.footer-trademark {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 640px;
    margin: 8px auto 0 auto;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
}

.footer-links a {
    color: #5FB45D;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}
.footer-credits {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 6px;
}

/* WHATSAPP BUTTON (riutilizzato su più pagine) */
main {
    flex: 1 0 auto;
    width: 100%;
}

.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: background-color 0.2s, transform 0.2s;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

/* RESPONSIVE HEADER GENERICO */
@media (max-width: 768px) {
    header { padding: 12px 20px; }
}