/*
Theme Name: Elisa Santucci - Amministratore Condominiale
Theme URI: https://www.elisasantucci.it
Author: Studio Elisa Santucci
Author URI: https://www.elisasantucci.it
Description: Tema professionale per D.ssa Elisa Santucci — Amministratore Condominiale Professionista a L'Aquila. Single-page con pannello di amministrazione completo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elisa-santucci
Tags: one-page, custom-logo, theme-options, translation-ready
*/

/* ====== CSS VARIABLES ====== */
:root {
    --rose: #c4967e;
    --rose-light: #dbb5a4;
    --rose-lighter: #f2e4dc;
    --rose-pale: #faf5f2;
    --dark: #2a2a2a;
    --dark-soft: #3d3d3d;
    --gray: #6b6b6b;
    --gray-light: #999;
    --gray-lighter: #e8e8e8;
    --white: #ffffff;
    --cream: #fdfbf9;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); font-weight: 300; color: var(--dark); background-color: var(--cream); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ====== VERTICAL LINES ====== */
.vertical-lines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.vertical-lines::before, .vertical-lines::after, .vertical-lines .line-mid {
    content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(196, 150, 126, 0.08);
}
.vertical-lines::before { left: 25%; }
.vertical-lines::after { left: 75%; }
.vertical-lines .line-mid { left: 50%; }

/* ====== HEADER ====== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 1.2rem 0; transition: var(--transition); }
.header.scrolled { background: rgba(253, 251, 249, 0.95); backdrop-filter: blur(20px); box-shadow: 0 1px 30px rgba(0,0,0,0.05); padding: 0.8rem 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.8rem; }
.logo img { height: 56px; width: 56px; border-radius: 50%; object-fit: cover; transition: var(--transition); }
.header.scrolled .logo img { height: 44px; width: 44px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--dark); line-height: 1.2; letter-spacing: 0.02em; }
.logo-text .title { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--rose); font-weight: 500; }
.nav-desktop { display: flex; align-items: center; gap: 2.5rem; }
.nav-desktop a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; color: var(--dark-soft); position: relative; padding: 0.3rem 0; }
.nav-desktop a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--rose); transition: var(--transition); }
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }
.nav-desktop a:hover { color: var(--rose); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 1001; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(42,42,42,0.97); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-nav.active { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-size: 2rem; color: var(--white); font-weight: 400; }
.mobile-nav a:hover { color: var(--rose-light); }

/* ====== HERO ====== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 8rem 0 4rem; overflow: hidden; }
.hero-bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(253,251,249,0.93) 0%, rgba(253,251,249,0.88) 40%, rgba(253,251,249,0.75) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }
.hero-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--rose); font-weight: 500; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.hero-label::before { content: ''; width: 40px; height: 1px; background: var(--rose); }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; line-height: 1.1; color: var(--dark); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--rose); font-weight: 400; }
.hero-desc { font-size: 1.05rem; color: var(--gray); line-height: 1.8; max-width: 520px; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--dark); color: var(--white); padding: 1rem 2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; border: none; cursor: pointer; transition: var(--transition); border-radius: 2px; }
.btn-primary:hover { background: var(--rose); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.7rem; background: transparent; color: var(--dark); padding: 1rem 2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; border: 1px solid var(--gray-lighter); cursor: pointer; transition: var(--transition); border-radius: 2px; }
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }
.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--gray-lighter); }
.hero-stat .number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--dark); line-height: 1; }
.hero-stat .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray-light); margin-top: 0.3rem; }

/* ====== SECTION COMMON ====== */
section { padding: 6rem 0; position: relative; }
.section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--rose); font-weight: 500; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--rose); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.2; color: var(--dark); margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--rose); font-weight: 400; }

/* ====== SERVICES ====== */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 3rem; }
.service-card { padding: 3rem 2.5rem; border: 1px solid var(--gray-lighter); margin: -0.5px; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--rose-pale); }
.service-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--rose); font-size: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--rose-light); border-radius: 50%; }
.service-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 1rem; color: var(--dark); }
.service-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ====== ABOUT ====== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image { position: relative; padding: 2rem; }
.about-image::before { content: ''; position: absolute; top: 0; left: 0; right: 2rem; bottom: 2rem; border: 1px solid var(--rose-light); border-radius: 4px; }
.about-img-main { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.about-img-main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-content .desc { font-size: 1rem; color: var(--gray); margin-bottom: 2rem; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }
.about-feature { display: flex; align-items: flex-start; gap: 1rem; }
.about-feature i { color: var(--rose); margin-top: 0.3rem; font-size: 0.85rem; }
.about-feature span { font-size: 0.95rem; color: var(--dark-soft); }

/* ====== FAQ ====== */
.faq { background: var(--white); }
.faq-grid { max-width: 800px; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-lighter); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; background: none; border: none; cursor: pointer; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--dark); text-align: left; transition: var(--transition); gap: 1rem; }
.faq-question:hover { color: var(--rose); }
.faq-question .faq-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gray-lighter); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.8rem; color: var(--rose); transition: var(--transition); }
.faq-item.active .faq-question .faq-icon { background: var(--rose); color: var(--white); border-color: var(--rose); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 0 1.5rem; font-size: 0.95rem; color: var(--gray); line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; }

/* ====== NUMBERS ====== */
.numbers { background: var(--dark); color: var(--white); overflow: hidden; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.number-item .num { font-family: var(--font-display); font-size: 3.5rem; font-weight: 300; color: var(--rose-light); line-height: 1; margin-bottom: 0.5rem; }
.number-item .num-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); }

/* ====== WHY CHOOSE ====== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.why-card { background: var(--white); padding: 2.5rem; border-radius: 4px; transition: var(--transition); border: 1px solid transparent; }
.why-card:hover { border-color: var(--rose-light); transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.why-card .icon { color: var(--rose); font-size: 2rem; margin-bottom: 1.5rem; }
.why-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 1rem; color: var(--dark); }
.why-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ====== AREA CONDOMINI ====== */
.area-condomini { background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%); color: var(--white); position: relative; overflow: hidden; }
.area-condomini::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(ellipse, rgba(196,150,126,0.08) 0%, transparent 60%); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.area-features-list { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.area-feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.area-feature-item .af-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(196,150,126,0.15); display: flex; align-items: center; justify-content: center; color: var(--rose-light); font-size: 0.85rem; flex-shrink: 0; }
.area-feature-item .af-text h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.3rem; }
.area-feature-item .af-text p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.login-box { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 3rem; position: relative; z-index: 1; }
.login-box h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; margin-bottom: 0.5rem; }
.login-box .subtitle { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 0.9rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 3px; color: var(--white); font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition); outline: none; }
.form-group input:focus { border-color: var(--rose); background: rgba(255,255,255,0.1); }
.form-group input::placeholder { color: rgba(255,255,255,0.25); }
.login-btn { width: 100%; padding: 1rem; background: var(--rose); color: var(--white); border: none; border-radius: 3px; font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; cursor: pointer; transition: var(--transition); margin-top: 0.5rem; }
.login-btn:hover { background: var(--rose-light); transform: translateY(-2px); }
.login-footer { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.login-footer a { color: var(--rose-light); border-bottom: 1px solid transparent; }
.login-footer a:hover { border-bottom-color: var(--rose-light); }

/* ====== CTA BANNER ====== */
.cta-banner { background: var(--rose); color: var(--white); text-align: center; padding: 4rem 0; }
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-bottom: 1.5rem; }
.cta-banner .btn-white { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--white); color: var(--dark); padding: 1rem 2.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; border: none; cursor: pointer; transition: var(--transition); border-radius: 2px; }
.cta-banner .btn-white:hover { background: var(--dark); color: var(--white); }

/* ====== CONTACT ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
.contact-info-cards { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-card { display: flex; align-items: flex-start; gap: 1.2rem; padding: 1.5rem; background: var(--white); border-radius: 4px; border: 1px solid var(--gray-lighter); transition: var(--transition); }
.contact-card:hover { border-color: var(--rose-light); }
.contact-card .cc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--rose-pale); display: flex; align-items: center; justify-content: center; color: var(--rose); font-size: 1rem; flex-shrink: 0; }
.contact-card h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 0.3rem; }
.contact-card p { font-size: 0.9rem; color: var(--gray); }
.contact-card a { color: var(--rose); font-weight: 400; }
.contact-card a:hover { color: var(--dark); }
.contact-form-wrapper { background: var(--white); padding: 3rem; border-radius: 4px; border: 1px solid var(--gray-lighter); }
.contact-form-wrapper h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 1.5rem; color: var(--dark); }
.cf-group { margin-bottom: 1.2rem; }
.cf-group label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gray-light); margin-bottom: 0.5rem; font-weight: 500; }
.cf-group input, .cf-group textarea, .cf-group select { width: 100%; padding: 0.9rem 1rem; background: var(--rose-pale); border: 1px solid transparent; border-radius: 3px; color: var(--dark); font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition); outline: none; }
.cf-group input:focus, .cf-group textarea:focus, .cf-group select:focus { border-color: var(--rose); background: var(--white); }
.cf-group textarea { resize: vertical; min-height: 120px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.submit-btn { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--dark); color: var(--white); padding: 1rem 2.5rem; border: none; border-radius: 2px; font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; cursor: pointer; transition: var(--transition); margin-top: 0.5rem; }
.submit-btn:hover { background: var(--rose); }

/* ====== MAP ====== */
.map-section { padding: 0; }
.map-section iframe { width: 100%; height: 400px; border: none; filter: grayscale(30%); }

/* ====== FOOTER ====== */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo-footer img { height: 60px; width: 60px; border-radius: 50%; margin-bottom: 1rem; filter: brightness(1.2); }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.8rem; transition: var(--transition); }
.footer-social a:hover { border-color: var(--rose); color: var(--rose); }
.footer-col h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: var(--white); margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--rose-light); }
.footer-col .contact-line { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.8rem; font-size: 0.85rem; }
.footer-col .contact-line i { color: var(--rose); margin-top: 0.2rem; font-size: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 3rem; padding: 1.5rem 0; text-align: center; font-size: 0.8rem; }

/* ====== SCROLL ANIMATIONS ====== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ====== SCROLL TOP ====== */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; background: var(--rose); color: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; z-index: 100; opacity: 0; transform: translateY(20px); transition: var(--transition); }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--dark); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .area-grid { gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .services-grid, .why-grid { grid-template-columns: 1fr; }
    .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
    section { padding: 4rem 0; }
    .container { padding: 0 1.2rem; }
}
