/*
Theme Name: Angelica Palla Luxury v4
Author: Tuo Nome
Description: Tema con menu fixato, header separato e gestione immagini archivio.
Version: 4.0
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary: #d4af37;
    --primary-hover: #b59226;
    --booking-blue: #5f7890;
    --surface: #ffffff;
    --line: rgba(35,35,35,0.12);
    --bg: #fdfbf7;
    --text: #444;
    --heading-color: #222;
    --heading: 'Playfair Display', serif;
    --body: 'Lato', sans-serif;
    --shadow-color: rgba(0,0,0,0.1);
}

body { margin: 0; padding: 0; font-family: var(--body); background: linear-gradient(180deg, #fff 0%, var(--bg) 48%, #fff 100%); color: var(--text); line-height: 1.7; }
h1, h2, h3 { font-family: var(--heading); color: var(--heading-color); margin-top: 0; letter-spacing: 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1320px; }

/* HEADER & MENU NAVIGATION FIX */
header { background: rgba(255,255,255,0.88); backdrop-filter: blur(18px); padding: 16px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 999; }
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo a { font-family: var(--heading); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; color: var(--heading-color); }

/* Logo Styles */
.custom-logo-link img {
    max-height: 80px;
    width: auto;
}

/* Footer Logo Specifics */
.footer-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.footer-logo .custom-logo-link { display: inline-flex; align-items: center; justify-content: center; }
.footer-logo .custom-logo-link img {
    max-height: 92px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}
.footer-logo a:not(.custom-logo-link) {
    color: #fff;
    font-family: var(--heading);
    font-size: 1.35rem;
    text-transform: uppercase;
}

/* Menu Layouts */
header.center .header-inner {
    flex-direction: column;
    gap: 20px;
}

header.left .header-inner {
    flex-direction: row-reverse;
}
header.left .logo {
    margin-right: 0;
    margin-left: auto;
}

/* Default Right (already flex-between) */


/* Rimuove elenco puntato e allinea il menu */
.main-navigation ul { 
    list-style: none !important; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    gap: 25px; 
}
.main-navigation li { margin: 0; }
.main-navigation a { 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    color: #666; 
}
.main-navigation a:hover, .main-navigation .current-menu-item a { color: var(--primary); }

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* HERO GLOBAL (usata per Archivio e Single) */
.page-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}
.page-hero::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); }
.page-hero h1 { position: relative; z-index: 2; font-size: 3.5rem; color: #fff; margin: 0; }
.page-hero::after { content:''; position:absolute; inset:auto 0 0; height:45%; background:linear-gradient(0deg, rgba(0,0,0,0.45), transparent); }
.home-hero {
    min-height: 78vh;
    height: auto;
    justify-content: flex-start;
    background-position: center center;
}
.home-hero::before {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.66) 30%, rgba(0,0,0,0.12) 58%, rgba(0,0,0,0.34) 100%);
}
.home-hero-content {
    position: relative;
    z-index: 3;
    max-width: 560px;
    padding: clamp(42px, 8vw, 96px);
    text-align: left;
}
.home-hero-content h1 {
    color: #17364d;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.95;
    margin-bottom: 22px;
}
.home-hero-content p {
    color: #334;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    margin-bottom: 30px;
}
.btn-hero {
    background: var(--booking-blue);
    color: #fff;
}
.btn-hero:hover {
    background: #496578;
}

/* GRIGLIE E CARD */
.home-services-section { padding: 96px 24px; }
.home-content {
    max-width: 1120px;
    margin: 0 auto 56px;
    text-align: center;
}
.cta-home-inner {
    max-width: 980px;
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 60px 0; }
.service-card { background: rgba(255,255,255,0.86); padding: 28px; border: 1px solid var(--line); transition: 0.3s; box-shadow: 0 18px 50px rgba(42,35,28,0.08); }
.service-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: 0 24px 70px rgba(42,35,28,0.13); }
.service-card-modern { border-radius: 18px; overflow: hidden; text-align: left !important; }
.service-card-image { display:block; margin: -28px -28px 24px; overflow:hidden; }
.service-card-image img { width:100%; height: 280px; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .service-card-image img { transform: scale(1.04); }
.service-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.service-link { color: var(--booking-blue); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }

/* FOOTER */
.site-footer { background: #16364a; color: #fff; padding: 64px 0; text-align: center; margin-top: auto; }
.footer-inner { display:flex; flex-direction:column; align-items:center; gap:22px; }
.footer-brand > img { width: 112px; height: auto; margin: 0 auto 18px; border-radius: 18px; }
.footer-brand p { max-width: 520px; margin: 0 auto; color: rgba(255,255,255,0.78); }
.footer-copy { margin: 0; color: rgba(255,255,255,0.68); }
.footer-vat { margin: -12px 0 0; color: rgba(255,255,255,0.66); font-size: 0.86rem; letter-spacing: 0; }
.footer-address { margin: -12px 0 0; color: rgba(255,255,255,0.72); font-size: 0.9rem; letter-spacing: 0; }
.footer-address a { color: inherit; border-bottom: 1px solid rgba(255,255,255,0.34); }
.social-links { display:flex; justify-content:center; gap:20px; margin-top: 0; }
.social-links a { color:#fff !important; border-bottom:1px solid rgba(255,255,255,0.4); }
.btn { background: var(--primary); color: #fff; padding: 10px 25px; display: inline-block; text-transform: uppercase; font-size: 0.8rem; margin-top: 15px; border: none; cursor: pointer; }
.btn:hover { background: var(--primary-hover); }
.btn-booking {
    background: var(--booking-blue, #5f7890);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 34px;
}
.btn-booking:hover {
    background: #496578;
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.btn-whatsapp:hover {
    background: #1ebc57;
}
.cta-booking-box {
    background: linear-gradient(135deg, rgba(253,251,247,0.96), rgba(255,255,255,0.9));
    border: 2px solid var(--primary);
    border-radius: 22px;
    box-shadow: 0 20px 65px rgba(42,35,28,0.12);
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
    margin-top: 60px;
}
.cta-booking-box h3 {
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-top: 0;
}
.cta-booking-box .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-layout {
    max-width: 980px;
    padding: 72px 24px;
}
.page-content {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 60px rgba(42,35,28,0.08);
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.9;
    padding: clamp(28px, 5vw, 58px);
}
.page-content h2,
.page-content h3 {
    color: var(--booking-blue);
}
.page-content a {
    color: var(--booking-blue);
    font-weight: 700;
}

/* MEDIA QUERIES (RESPONSIVE) */
@media (max-width: 768px) {
    .header-inner { flex-direction: row; justify-content: space-between; } /* Keep logo and hamburger aligned */
    
    .menu-toggle { display: block; }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .main-navigation.active { display: block; }
    
    .main-navigation ul { 
        flex-direction: column; 
        gap: 0; 
        text-align: center;
    }
    .main-navigation li {
        border-bottom: 1px solid #f5f5f5;
    }
    .main-navigation li:last-child { border-bottom: none; }
    
    .main-navigation a {
        display: block;
        padding: 15px;
        font-size: 1rem;
    }

    /* Reset Header Layouts on Mobile */
    header.center .header-inner,
    header.left .header-inner {
        flex-direction: row;
    }

    /* Animation for Hamburger */
    .menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .page-hero { height: 300px; }
    .page-hero h1 { font-size: 2.5rem; }
    .home-hero {
        min-height: 72vh;
        align-items: flex-end;
        background-position: 55% center;
    }
    .home-hero::before {
        background: linear-gradient(0deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.76) 34%, rgba(0,0,0,0.08) 100%);
    }
    .home-hero-content {
        padding: 32px 20px 46px;
        max-width: 100%;
    }
    .home-hero-content h1 {
        font-size: 2.8rem !important;
    }
    
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    
    .services-grid { grid-template-columns: 1fr; gap: 30px; }
    .home-services-section { padding: 64px 15px; }
    .service-card-image img { height: 240px; }
    .container { padding: 0 15px; }
    .page-layout { padding: 48px 15px; }
    
    main { padding-top: 40px !important; padding-bottom: 40px !important; }
}
