/* =========================================================
   RICORDI APPESI — Editorial Premium (Social House Inspired)
   ========================================================= */

:root {
    --bg:          #F0EDE8;
    --bg-alt:      #E8E4DE;
    --bg-dark:     #1A1A1A;
    --text:        #1A1A1A;
    --text-muted:  #7A7570;
    --text-light:  #F0EDE8;
    --accent:      #828F70;
    --gold:        #C5A059;
    --border:      1px solid rgba(26,26,26,0.12);
    --border-color:rgba(26,26,26,0.12);

    --font-display:'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

    --radius:      16px;
    --radius-lg:   24px;
    --radius-pill: 100px;

    --header-h:    80px;
    --container:   1280px;
    --gutter:      clamp(24px, 5vw, 80px);

    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
    --transition:  0.4s var(--ease);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* === CONTAINER === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
.section-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border: var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn-light:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ================================================================
   HEADER — Social House style (clean top bar with thin borders)
   ================================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(240, 237, 232, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: var(--border);
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo-link img,
.custom-logo-link img,
.custom-logo { height: 44px !important; width: auto !important; max-width: 180px !important; object-fit: contain; }

/* Hamburger */
.hamburger-wrap { display: flex; align-items: center; gap: 16px; }
.menu-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hamburger-circle {
    width: 48px; height: 48px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}
.hamburger-circle:hover { background: var(--text); }
.hamburger-circle:hover span { background: var(--bg); }
.hamburger-circle span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* === FULLSCREEN MENU OVERLAY === */
.menu-overlay {
    position: fixed; inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex; flex-direction: column;
    padding: 40px var(--gutter);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}
.menu-overlay.open { opacity: 1; pointer-events: all; }
.menu-overlay-header { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.menu-close {
    width: 48px; height: 48px;
    border: 1.5px solid rgba(240,237,232,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--bg); font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}
.menu-close:hover { background: var(--bg); color: var(--bg-dark); }
.menu-nav { flex: 1; display: flex; align-items: center; }
.menu-nav ul { width: 100%; }
.menu-nav li { border-bottom: 1px solid rgba(240,237,232,0.1); }
.menu-nav a {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s var(--ease), color 0.3s;
}
.menu-overlay.open .menu-nav a {
    opacity: 1;
    transform: translateY(0);
}
.menu-nav li:nth-child(1) a { transition-delay: 0.15s; }
.menu-nav li:nth-child(2) a { transition-delay: 0.25s; }
.menu-nav li:nth-child(3) a { transition-delay: 0.35s; }
.menu-nav li:nth-child(4) a { transition-delay: 0.45s; }
.menu-nav a:hover { color: var(--gold); padding-left: 16px; }
.menu-nav a::after { content: '→'; font-family: var(--font-sans); font-size: 1.2rem; opacity: 0; transition: opacity 0.3s; }
.menu-nav a:hover::after { opacity: 1; }
.menu-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 40px; border-top: 1px solid rgba(240,237,232,0.1); }
.menu-footer a { color: rgba(240,237,232,0.5); font-size: 0.85rem; transition: color 0.3s; }
.menu-footer a:hover { color: var(--text-light); }
.social-links { display: flex; gap: 24px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 460px; line-height: 1.7; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 60px rgba(26,26,26,0.1);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute;
    bottom: -20px; left: -20px;
    background: #000000;
    color: var(--text-light);
    padding: 20px 24px;
    border-radius: var(--radius);
}
.hero-badge-number { font-family: var(--font-display); font-size: 2rem; display: block; }
.hero-badge-text { font-size: 0.75rem; letter-spacing: 0.05em; opacity: 0.7; }

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee-wrap {
    border-top: var(--border);
    border-bottom: var(--border);
    padding: 20px 0;
    overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-content { display: flex; gap: 40px; align-items: center; padding-right: 40px; white-space: nowrap; }
.marquee-content span {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   PROJECT SECTION (Sage Background — Faenza Story)
   ================================================================ */
.project-section {
    background: var(--accent);
    color: var(--text-light);
    padding-block: clamp(80px, 12vw, 160px);
}
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.project-content .section-label { color: rgba(240,237,232,0.6); }
.project-content h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); margin-bottom: 24px; letter-spacing: -0.02em; }
.project-content p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; opacity: 0.85; }
.project-visual { border-radius: var(--radius-lg); overflow: hidden; }
.project-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.project-video-embed { margin-top: 30px; border-radius: var(--radius); overflow: hidden; }
.project-video-embed iframe { border-radius: var(--radius); }

/* ================================================================
   SERVICES — Editorial Card Grid
   ================================================================ */
.services-section { padding-block: clamp(80px, 12vw, 160px); }
.section-header { margin-bottom: 60px; display: flex; justify-content: space-between; align-items: flex-end; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-color); box-shadow: 0 16px 48px rgba(26,26,26,0.08); }
.service-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.service-title { font-size: 1.15rem; margin-bottom: 10px; }
.service-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ================================================================
   WHY SECTION (Stats + CTA)
   ================================================================ */
.why-section { padding-block: clamp(80px, 10vw, 140px); border-top: var(--border); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.why-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-item { text-align: center; padding: 28px 16px; border: var(--border); border-radius: var(--radius); }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; display: block; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-block: clamp(80px, 12vw, 140px);
    text-align: center;
}
.cta-section .section-label { color: var(--gold); }
.cta-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.cta-desc { color: rgba(240,237,232,0.6); max-width: 500px; margin: 0 auto 36px; font-size: 1.05rem; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-premium-section { padding-block: clamp(80px, 12vw, 160px); padding-top: calc(var(--header-h) + 60px); }
.contact-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.contact-header .page-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; }
.page-subtitle { font-size: 12px; margin-bottom: 16px; }
.contact-header .page-title em { font-style: italic; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.contact-form-wrap {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    border: var(--border);
}
.contact-form-wrap h2 { font-size: 1.4rem; margin-bottom: 32px; }
.form-group { margin-bottom: 28px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(130,143,112,0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7570' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-success { background: #e8f5e9; color: #2e7d32; border-radius: 10px; padding: 16px; margin-bottom: 24px; font-size: 0.9rem; text-align: center; }

.contact-info-side-wp { display: flex; flex-direction: column; gap: 20px; }
/* Effetto hover per il tasto di WhatsApp */
.whatsapp-card:hover {
    transform: translateY(-3px);
    background-color: #1ebe57 !important; /* Un verde leggermente più scuro */
}

.contact-info-side { display: flex; flex-direction: column; gap: 20px; }
.info{
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
    border: var(--border);
}
.info-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px;
    border: var(--border);
}
.info-card.sage { background: var(--accent); color: var(--text-light); border-color: transparent; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.info-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.info-card.sage p { color: rgba(240,237,232,0.8); }
.info-card a { border-bottom: 1px solid var(--border-color); }
.info-card a:hover { color: var(--accent); }
.info-card.sage a { color: var(--text-light); border-bottom-color: rgba(240,237,232,0.3); }

/* ================================================================
   CHI SIAMO PAGE
   ================================================================ */
.page-hero { padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.page-hero-inner--centered { grid-template-columns: 1fr; max-width: 700px; }
.page-hero-text--centered { text-align: center; }
.page-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.page-hero-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 500px; }
.page-hero-text--centered .page-hero-desc { margin-inline: auto; }

.about-img-stack { position: relative; aspect-ratio: 4/5; }
.about-img-main { position: absolute; inset: 0 30px 30px 0; border-radius: var(--radius-lg); background: linear-gradient(135deg, #D4C9BA, #C0B5A4); }
.about-img-accent { position: absolute; bottom: 0; right: 0; width: 55%; height: 55%; border-radius: var(--radius-lg); background: var(--bg-dark); }

.mission-section { padding-block: clamp(60px, 10vw, 120px); border-top: var(--border); }
.mission-inner { display: grid; grid-template-columns: 200px 1fr; gap: 60px; }
.mission-title { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 20px; }
.mission-text { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }

.values-section { padding-block: clamp(60px, 10vw, 120px); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px 24px; border: var(--border); transition: var(--transition); }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,26,26,0.06); }
.value-num { font-size: 1.8rem; font-weight: 200; color: var(--text-muted); display: block; margin-bottom: 12px; }
.value-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.value-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.about-services-section { padding-block: clamp(60px, 10vw, 120px); border-top: var(--border); }
.about-services-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-services-list { margin-top: 20px; }
.about-service-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: var(--border); font-size: 0.95rem; }
.about-service-arrow { color: var(--text-muted); }
.about-services-cta { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px; border: var(--border); }
.about-services-cta p { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-block: 80px 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-desc { color: rgba(240,237,232,0.5); font-size: 0.9rem; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-social { display: flex; gap: 20px; margin-top: 20px; }
.footer-social a { color: rgba(240,237,232,0.5); font-size: 0.85rem; }
.footer-social a:hover { color: var(--text-light); }
.site-footer h4 { margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(240,237,232,0.5); font-size: 0.9rem; }
.site-footer ul a:hover { color: var(--text-light); }
.site-footer p { color: rgba(240,237,232,0.5); font-size: 0.88rem; line-height: 1.7; }
.site-footer p a { border-bottom: 1px solid rgba(240,237,232,0.2); }
.site-footer p a:hover { color: var(--text-light); }
.footer-bottom { border-top: 1px solid rgba(240,237,232,0.1); padding-top: 24px; display: flex; justify-content: space-between; }
.footer-bottom p { font-size: 0.78rem; color: rgba(240,237,232,0.35); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .hero-inner, .project-grid, .why-grid, .about-services-inner, .page-hero-inner { grid-template-columns: 1fr; }
    .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .services-grid, .values-grid, .stats-row { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
    .mission-inner { grid-template-columns: 1fr; gap: 16px; }
}


/* ================================================================
   POSTS ARCHIVE GRID
   ================================================================ */
.posts-grid-wrap {
    padding-block: clamp(60px, 8vw, 120px);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.post-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
}
.post-card-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(26,26,26,0.05);
    background: var(--bg-alt);
    border: var(--border);
}
.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card-img {
    transform: scale(1.05);
}
.post-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-inline: 4px;
}
.post-card-title {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
}
.post-card-title a:hover {
    color: var(--accent);
}
.post-card-date {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}
@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.hhhome {
    display: none !important;
}

/* Stile per schermi grandi (Computer e Tablet) */
.footer-bottom {
    display: flex;
    justify-content: space-between; /* Spinge un blocco a sinistra e uno a destra */
    align-items: center;           /* Allinea i testi verticalmente al centro */
    flex-wrap: wrap;               /* Permette di andare a capo se lo spazio finisce */
    padding: 15px 0;               /* Un po' di respiro sopra e sotto */
}

.footer-bottom p {
    margin: 0;                     /* Rimuove i margini predefiniti dei paragrafi */
}

/* Stile per schermi piccoli (Smartphone) */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;    /* Incolonna gli elementi verticalmente */
        text-align: center;        /* Centra il testo per una resa estetica migliore */
        gap: 10px;                 /* Aggiunge spazio verticale tra i due blocchi */
    }
}

