/* ============================================
   STUDIO LEGALE VIETRI - A1
   Base avorio + fasce verdi (header, hero, footer)
   Accenti oro con effetto glow
   Cormorant Garamond (titoli) + Sofia Sans (testo)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Verde — fasce e accento primario */
    --green-950: #131C13;
    --green-900: #1C2A1B;
    --green-800: #2C3B2B;
    --green-700: #3B5138;
    --green-600: #4C6647;
    --green-500: #5E7C55;
    --green-400: #86A277;
    --green-300: #A9C296;
    --green-200: #C9DDB2;
    --green-100: #DEEBC8;
    --green-50:  #EDF3E1;

    /* Avorio — corpo delle pagine */
    --ivory: #F6F2E6;
    --ivory-rgb: 246, 242, 230;
    --ivory-light: #FFFDF4;
    --ivory-dark: #DED7C2;

    /* Alias neumorfici (base chiara) */
    --neu-bg: var(--ivory);
    --neu-light: var(--ivory-light);
    --neu-dark: var(--ivory-dark);

    /* Ombre neumorfiche */
    --neu-shadow-raised: 8px 8px 16px var(--ivory-dark), -8px -8px 16px var(--ivory-light);
    --neu-shadow-raised-sm: 4px 4px 8px var(--ivory-dark), -4px -4px 8px var(--ivory-light);
    --neu-shadow-pressed: inset 4px 4px 8px var(--ivory-dark), inset -4px -4px 8px var(--ivory-light);
    --neu-shadow-flat: 2px 2px 4px var(--ivory-dark), -2px -2px 4px var(--ivory-light);
    --neu-shadow-hover: 10px 10px 22px var(--ivory-dark), -10px -10px 22px var(--ivory-light);

    /* Oro */
    --gold-light: #F0DFA0;
    --gold: #C9A84C;
    --gold-deep: #A6842F;
    --gold-ink: #8F6E22;          /* oro leggibile su avorio */
    --gold-gradient: linear-gradient(135deg, #A6842F 0%, #F0DFA0 48%, #C9A84C 100%);
    --gold-line: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.65), transparent);
    --glow-gold: 0 0 20px rgba(201, 168, 76, 0.38);
    --glow-gold-strong: 0 0 28px rgba(201, 168, 76, 0.55);

    /* Accento verde */
    --accent: #3B5138;
    --accent-soft: #4C6647;
    --accent-deep: #2C3B2B;
    --accent-pale: #DEEBC8;
    --accent-gradient: linear-gradient(135deg, #2C3B2B 0%, #4C6647 55%, #3B5138 100%);

    /* Testo su avorio */
    --text-primary: #22301F;
    --text-secondary: #55654E;
    --text-muted: #7F8B76;
    --text-light: #F6F2E6;

    /* Testo su verde */
    --on-dark: #F6F2E6;
    --on-dark-soft: rgba(246, 242, 230, 0.74);
    --on-dark-muted: rgba(246, 242, 230, 0.55);

    /* Stati */
    --success: #4C6647;
    --error: #B4543F;
    --info: #4A6E7A;

    /* Tipografia */
    --font-heading: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-body: 'Sofia Sans', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spaziature */
    --section-padding: 110px 0;
    --container-width: 1200px;
    --gap: 24px;

    /* Raggi */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;
    --radius-full: 50%;

    /* Transizioni */
    --transition: all 0.3s ease;
    --transition-shadow: box-shadow 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--ivory);
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-soft);
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--gold-light);
    color: var(--green-900);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--green-900);
    line-height: 1.15;
    font-weight: 500;
}

/* H1 — 200/245 nel type scale, riproporzionato in scala fluida */
h1 {
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 1.22;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* H2 — 64/45 */
h2 {
    font-size: clamp(2.1rem, 4.4vw, 4rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: 0.005em;
}

/* Blog title — 40/48 */
h3 {
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    line-height: 1.2;
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.25;
    font-weight: 600;
}

/* Paragraph — 18/20 (interlinea aperta per la lettura a schermo) */
p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
}

/* Main text — 36/45 */
.text-lead {
    font-size: clamp(1.35rem, 2.2vw, 2.25rem);
    line-height: 1.25;
    font-weight: 300;
    color: var(--text-primary);
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-label,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 18px;
    background: var(--ivory);
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(201, 168, 76, 0.5);
    box-shadow: var(--neu-shadow-flat);
}

.section-header .section-label i,
.section-label i {
    font-size: 0.7rem;
    color: var(--gold-ink);
}

.section-header h2 {
    margin-bottom: 18px;
}

/* Filetto dorato sotto i titoli di sezione */
.section-header h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    margin: 20px auto 0;
    background: var(--gold-line);
}

.section-header p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* --- Neumorphic Components --- */
.neu-card {
    background: var(--ivory);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow-raised);
    padding: 32px;
    transition: var(--transition-shadow);
    border: 1px solid rgba(255, 253, 244, 0.7);
}

.neu-card:hover {
    box-shadow: var(--neu-shadow-hover);
}

.neu-card-flat {
    background: var(--ivory);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow-flat);
    padding: 32px;
    border: 1px solid rgba(255, 253, 244, 0.5);
}

.neu-inset {
    background: var(--ivory);
    border-radius: var(--radius-md);
    box-shadow: var(--neu-shadow-pressed);
    padding: 24px;
    border: 1px solid rgba(222, 215, 194, 0.25);
}

.neu-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--ivory);
    box-shadow: var(--neu-shadow-raised-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    transition: var(--transition);
    border: 1px solid rgba(201, 168, 76, 0.35);
}

.neu-icon-circle.large {
    width: 80px;
    height: 80px;
    font-size: 1.55rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.1;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.btn i {
    font-size: 0.8em;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--gold-light);
    box-shadow: 4px 4px 10px var(--ivory-dark), -4px -4px 10px var(--ivory-light);
}

.btn-primary:hover {
    color: #FFFFFF;
    box-shadow: 6px 6px 16px rgba(202, 192, 163, 0.9), -6px -6px 16px var(--ivory-light), var(--glow-gold);
    transform: translateY(-2px);
}

.btn-primary:active {
    box-shadow: var(--neu-shadow-pressed);
    transform: translateY(0);
}

.btn-secondary {
    background: var(--ivory);
    color: var(--green-800);
    box-shadow: var(--neu-shadow-raised-sm);
    border: 1px solid rgba(201, 168, 76, 0.45);
}

.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--gold);
    box-shadow: var(--neu-shadow-raised), var(--glow-gold);
    transform: translateY(-2px);
}

.btn-secondary:active {
    box-shadow: var(--neu-shadow-pressed);
    transform: translateY(0);
}

/* Variante oro — usata sulle fasce verdi */
.btn-gold,
.hero .btn-primary,
.cta-box .btn-primary,
.nav-links .nav-cta a.btn {
    background: var(--gold-gradient);
    color: var(--green-950);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), var(--glow-gold);
}

.btn-gold:hover,
.hero .btn-primary:hover,
.cta-box .btn-primary:hover,
.nav-links .nav-cta a.btn:hover {
    color: var(--green-950);
    background: var(--gold-gradient);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), var(--glow-gold-strong);
    transform: translateY(-2px);
}

.btn-navy {
    background: var(--green-900);
    color: var(--on-dark);
    box-shadow: 4px 4px 10px var(--ivory-dark), -4px -4px 10px var(--ivory-light);
}

.btn-navy:hover {
    background: var(--green-800);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* ============================================
   NAVBAR — sempre su fascia verde
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(28, 42, 27, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
    box-shadow: 0 6px 26px rgba(19, 28, 19, 0.28);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.45);
    box-shadow: inset 0 0 12px rgba(201, 168, 76, 0.14), var(--glow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.05rem;
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-dark);
    line-height: 1.15;
}

.navbar-brand .brand-text span {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--gold-light);
    opacity: 0.8;
    font-family: var(--font-body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--on-dark-soft);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--on-dark);
    background: rgba(246, 242, 230, 0.08);
    border-color: rgba(201, 168, 76, 0.35);
}

.nav-links a.active {
    color: var(--gold-light);
}

.nav-cta {
    margin-left: 8px;
}

/* I bottoni dentro la nav non devono ereditare lo stile dei link */
.nav-links .nav-cta a.btn {
    padding: 11px 26px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    border-radius: var(--radius-pill);
}

.nav-links .nav-social a.social-link {
    padding: 0;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(246, 242, 230, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   FASCE VERDI (hero + page header)
   ============================================ */
.hero,
.page-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(70% 60% at 85% 15%, rgba(201, 168, 76, 0.16) 0%, rgba(201, 168, 76, 0) 62%),
        radial-gradient(60% 60% at 10% 95%, rgba(134, 162, 119, 0.16) 0%, rgba(134, 162, 119, 0) 65%),
        linear-gradient(160deg, #1C2A1B 0%, #2C3B2B 55%, #22311F 100%);
}

/* Filetto dorato di raccordo verso il corpo avorio */
.hero::after,
.page-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold-line);
    z-index: 4;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.45);
    box-shadow: var(--glow-gold);
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 0.8rem;
    color: var(--gold);
    animation: goldPulse 3s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--on-dark);
    font-size: clamp(2.7rem, 6vw, 5.25rem);
}

.hero h1 .highlight {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0;
    text-shadow: 0 0 28px rgba(201, 168, 76, 0.45);
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 300;
    color: var(--on-dark-soft);
    margin-bottom: 34px;
    max-width: 620px;
    line-height: 1.55;
}

.hero .btn-secondary {
    background: rgba(246, 242, 230, 0.06);
    color: var(--on-dark);
    border: 1px solid rgba(246, 242, 230, 0.35);
    box-shadow: none;
}

.hero .btn-secondary:hover {
    color: var(--gold-light);
    border-color: var(--gold);
    box-shadow: var(--glow-gold);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(246, 242, 230, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition);
}

.hero-stat:hover {
    border-color: rgba(201, 168, 76, 0.6);
    box-shadow: var(--glow-gold);
}

.hero-stat .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1rem;
}

.hero-stat .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--on-dark);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--on-dark-muted);
    margin-top: 2px;
}

/* Monogramma di sfondo */
.hero-decoration {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.1) 0%, rgba(201, 168, 76, 0) 68%);
    border: 1px solid rgba(201, 168, 76, 0.16);
    z-index: 1;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-decoration::after {
    content: 'V';
    font-family: var(--font-heading);
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-size: 17rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.3;
    text-shadow: 0 0 60px rgba(201, 168, 76, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--on-dark-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 2;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes goldPulse {
    0%, 100% { opacity: 0.75; text-shadow: 0 0 6px rgba(201, 168, 76, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 18px rgba(201, 168, 76, 0.75); }
}

/* Su schermi bassi l'indicatore si sovrapporrebbe alle statistiche */
@media (max-height: 980px) {
    .hero-scroll {
        display: none;
    }
}

/* ============================================
   PAGE HEADER (pagine interne)
   ============================================ */
.page-header {
    padding: 160px 0 72px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 18px;
    color: var(--on-dark);
    font-size: clamp(2.6rem, 6.5vw, 5.5rem);
}

.page-header p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--on-dark-soft);
}

.page-header .section-label {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.45);
    box-shadow: var(--glow-gold);
    color: var(--gold-light);
}

.page-header .section-label i {
    color: var(--gold);
}

/* ============================================
   PRACTICE AREAS / ATTIVITA
   ============================================ */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

.activity-card {
    background: var(--ivory);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-raised);
    padding: 40px;
    transition: var(--transition-shadow);
    border: 1px solid rgba(255, 253, 244, 0.7);
    position: relative;
    overflow: hidden;
}

/* Filetto dorato in testa alla card */
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--gold-line);
    opacity: 0.7;
}

.activity-card:hover {
    box-shadow: var(--neu-shadow-hover);
}

.activity-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.activity-card .card-number {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 400;
    color: var(--gold);
    opacity: 0.55;
    line-height: 1;
}

.activity-card h3 {
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.activity-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.activity-card .card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent-pale);
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green-800);
    margin-bottom: 20px;
}

.activity-card .card-badge i {
    color: var(--gold-ink);
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: var(--ivory);
    box-shadow: var(--neu-shadow-flat);
    border: 1px solid rgba(255, 253, 244, 0.4);
}

.service-list li i {
    color: var(--gold-ink);
    font-size: 0.7rem;
    margin-top: 6px;
    flex-shrink: 0;
}

/* Preview cards (homepage) */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.preview-card {
    background: var(--ivory);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-raised);
    padding: 34px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 253, 244, 0.7);
    text-decoration: none;
    display: block;
}

.preview-card:hover {
    box-shadow: var(--neu-shadow-hover);
    transform: translateY(-4px);
    color: inherit;
}

.preview-card .neu-icon-circle {
    margin: 0 auto 20px;
}

.preview-card:hover .neu-icon-circle {
    background: var(--accent-pale);
    border-color: var(--gold);
    box-shadow: var(--neu-shadow-pressed), var(--glow-gold);
    color: var(--green-800);
}

.preview-card h4 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.preview-card p {
    font-size: 0.98rem;
    margin-bottom: 16px;
}

.preview-card .card-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.preview-card .card-link i {
    font-size: 0.7em;
    color: var(--gold-ink);
    transition: var(--transition);
}

.preview-card:hover .card-link i {
    transform: translateX(4px);
}

/* ============================================
   LO STUDIO (About)
   ============================================ */
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.studio-image-container {
    position: relative;
}

.studio-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-raised);
    overflow: hidden;
    border: 1px solid rgba(255, 253, 244, 0.7);
    aspect-ratio: 4/5;
    background: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-image .placeholder-icon {
    font-size: 4rem;
    color: var(--green-300);
    opacity: 0.5;
}

.studio-info h3 {
    color: var(--gold-ink);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    font-family: var(--font-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.studio-info h2 {
    margin-bottom: 24px;
}

.studio-info p {
    margin-bottom: 16px;
}

.qualifications {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qualification-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: var(--ivory);
    box-shadow: var(--neu-shadow-raised-sm);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(201, 168, 76, 0.28);
    transition: var(--transition);
}

.qualification-item:hover {
    border-color: rgba(201, 168, 76, 0.6);
    box-shadow: var(--neu-shadow-raised-sm), var(--glow-gold);
}

.qualification-item i {
    color: var(--gold-ink);
    font-size: 1.05rem;
}

.qualification-item span {
    font-size: 0.98rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 70px;
}

.value-card {
    text-align: center;
    padding: 44px 28px;
}

.value-card .neu-icon-circle {
    margin: 0 auto 20px;
}

.value-card h4 {
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.98rem;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-bottom: 60px;
}

.contact-info-card {
    text-align: center;
    padding: 34px 20px;
}

.contact-info-card .neu-icon-circle {
    margin: 0 auto 16px;
}

.contact-info-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-info-card a {
    color: var(--accent);
    font-weight: 500;
}

.contact-info-card a:hover {
    color: var(--gold-ink);
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container {
    padding: 44px;
}

.contact-form-container h3 {
    margin-bottom: 8px;
}

.contact-form-container > p {
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--gold-ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: var(--radius-sm);
    background: var(--ivory);
    box-shadow: var(--neu-shadow-pressed);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: var(--neu-shadow-pressed), 0 0 0 2px rgba(201, 168, 76, 0.35);
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group 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 12 12'%3E%3Cpath fill='%238f6e22' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    box-shadow: var(--neu-shadow-pressed);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--accent);
}

.form-checkbox label {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

.form-checkbox label a {
    color: var(--accent);
    text-decoration: underline;
}

.form-submit {
    margin-top: 24px;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
}

/* Map */
.contact-map {
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-raised);
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.3);
    height: 100%;
    min-height: 500px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(25%) saturate(0.85) contrast(0.98);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    text-align: center;
    padding: 70px 40px;
    background:
        radial-gradient(60% 70% at 80% 10%, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0) 60%),
        linear-gradient(150deg, #1C2A1B 0%, #2C3B2B 60%, #22311F 100%);
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-raised), 0 0 40px rgba(201, 168, 76, 0.1);
    position: relative;
    overflow: hidden;
}

/* Alfabeto fantasma dorato */
.cta-box::before {
    content: 'A B C D E F G';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 11rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    color: var(--gold);
    opacity: 0.09;
    pointer-events: none;
}

.cta-box h2 {
    color: var(--on-dark);
    margin-bottom: 18px;
    position: relative;
}

.cta-box p {
    color: var(--on-dark-soft);
    max-width: 540px;
    margin: 0 auto 34px;
    position: relative;
}

.cta-box .btn-primary {
    position: relative;
}

/* ============================================
   FOOTER — fascia verde
   ============================================ */
.footer {
    padding: 70px 0 0;
    margin-top: 40px;
    background:
        radial-gradient(50% 60% at 85% 0%, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0) 62%),
        linear-gradient(180deg, #1C2A1B 0%, #131C13 100%);
    color: var(--on-dark);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-line);
}

.footer p,
.footer span {
    color: var(--on-dark-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-brand .brand-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.45);
    box-shadow: var(--glow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-light);
    margin-bottom: 22px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--on-dark-soft);
}

.footer-col ul li a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(201, 168, 76, 0.18);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--on-dark-muted);
}

.footer-bottom a {
    color: var(--on-dark-muted);
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--ivory);
    box-shadow: var(--neu-shadow-raised);
    border: 1px solid rgba(201, 168, 76, 0.45);
    color: var(--gold-ink);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    box-shadow: var(--neu-shadow-hover), var(--glow-gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.back-to-top:active {
    box-shadow: var(--neu-shadow-pressed);
    transform: translateY(0);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px 0;
    background: rgba(246, 242, 230, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(180, 170, 140, 0.28);
    border-top: 1px solid rgba(201, 168, 76, 0.35);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-banner p a {
    color: var(--gold-ink);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ============================================
   PRIVACY / COOKIE POLICY PAGES
   ============================================ */
.legal-content {
    padding: 60px 0 80px;
}

.legal-content .container {
    max-width: 800px;
}

.legal-card {
    padding: 52px;
}

.legal-card h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    margin: 44px 0 16px;
    padding-top: 26px;
    border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.legal-card h2:first-of-type {
    border-top: none;
    margin-top: 20px;
    padding-top: 0;
}

.legal-card p {
    font-size: 1rem;
    margin-bottom: 12px;
}

.legal-card ul {
    margin: 12px 0 20px 20px;
}

.legal-card ul li {
    list-style: disc;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 4px;
}

.legal-card ul li::marker {
    color: var(--gold-ink);
}

.legal-card .last-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 168, 76, 0.25);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s 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; }

.hero .hero-content .reveal,
.page-header .reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.7s ease forwards;
}

.hero .hero-content .reveal-delay-1,
.page-header .reveal-delay-1 { animation-delay: 0.15s; }
.hero .hero-content .reveal-delay-2,
.page-header .reveal-delay-2 { animation-delay: 0.3s; }
.hero .hero-content .reveal-delay-3 { animation-delay: 0.45s; }
.hero .hero-content .reveal-delay-4 { animation-delay: 0.6s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .studio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 350px;
    }

    .hero-decoration {
        opacity: 0.55;
    }
}

/* Menu a scomparsa: sotto i 992px la barra orizzontale non ha più spazio */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(28, 42, 27, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 80px 24px;
        z-index: 998;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.15rem;
        padding: 14px 28px;
    }

    .nav-links .nav-cta a.btn {
        font-size: 1.1rem;
        padding: 14px 32px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-social {
        margin-left: 0;
        margin-top: 8px;
    }

    .nav-toggle {
        display: flex;
        z-index: 999;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-decoration {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-stat {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .page-header {
        padding: 130px 0 52px;
    }

    .activity-card {
        padding: 28px;
    }

    .contact-form-container {
        padding: 28px;
    }

    .legal-card {
        padding: 28px;
    }

    .cta-box::before {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-box {
        padding: 44px 24px;
    }

    .btn {
        font-size: 0.95rem;
        padding: 14px 26px;
    }
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero .container,
.page-header .container {
    position: relative;
    z-index: 3;
}

.hero-decoration {
    z-index: 1;
}

/* ============================================
   FLOATING DECORATIONS (sezioni avorio)
   ============================================ */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.float-el {
    position: absolute;
    border-radius: var(--radius-full);
    background: var(--ivory);
    opacity: 0.5;
}

.float-el.circle-sm {
    width: 60px;
    height: 60px;
    box-shadow: var(--neu-shadow-raised-sm);
    border: 1px solid rgba(201, 168, 76, 0.28);
}

.float-el.circle-md {
    width: 100px;
    height: 100px;
    box-shadow: var(--neu-shadow-raised);
    border: 1px solid rgba(201, 168, 76, 0.22);
}

.float-el.circle-lg {
    width: 160px;
    height: 160px;
    box-shadow: var(--neu-shadow-raised);
    border: 1px solid rgba(201, 168, 76, 0.18);
}

.float-el.square {
    border-radius: var(--radius-md);
    width: 80px;
    height: 80px;
    box-shadow: var(--neu-shadow-raised-sm);
    border: 1px solid rgba(201, 168, 76, 0.22);
}

.float-el.diamond {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    box-shadow: var(--neu-shadow-raised-sm);
    border: 1px solid rgba(201, 168, 76, 0.22);
    transform: rotate(45deg);
}

/* Float animations */
.float-el.anim-1 { animation: floatUp 12s ease-in-out infinite; }
.float-el.anim-2 { animation: floatDiag 15s ease-in-out infinite; }
.float-el.anim-3 { animation: floatSlow 20s ease-in-out infinite; }
.float-el.anim-4 { animation: floatBounce 10s ease-in-out infinite; }
.float-el.anim-5 { animation: floatSway 14s ease-in-out infinite; }

@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatDiag {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(3deg); }
    66% { transform: translate(-10px, -10px) rotate(-3deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    75% { transform: translateY(10px); }
}

@keyframes floatSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(20px) rotate(5deg); }
}

.float-el.diamond.anim-1 { animation: floatDiamond 12s ease-in-out infinite; }
.float-el.diamond.anim-2 { animation: floatDiamond 16s ease-in-out infinite reverse; }

@keyframes floatDiamond {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-25px); }
}

/* ============================================
   ENHANCED CARD INTERACTIONS
   ============================================ */
.preview-card:hover,
.activity-card:hover,
.neu-card.value-card:hover {
    box-shadow: var(--neu-shadow-hover), 0 0 30px rgba(201, 168, 76, 0.18);
}

.neu-icon-circle.animated {
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { box-shadow: var(--neu-shadow-raised-sm); border-color: rgba(201, 168, 76, 0.35); }
    50% { box-shadow: var(--neu-shadow-raised-sm), 0 0 18px rgba(201, 168, 76, 0.4); border-color: rgba(201, 168, 76, 0.75); }
}

.preview-card:hover .neu-icon-circle i,
.activity-card:hover .neu-icon-circle i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   PHOTO PLACEHOLDERS
   ============================================ */
.photo-placeholder {
    background: var(--ivory);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-pressed);
    border: 2px dashed rgba(201, 168, 76, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.photo-placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.photo-placeholder i {
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.5;
}

.photo-placeholder span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.photo-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.photo-placeholder.has-image .placeholder-content {
    display: none;
}

.photo-placeholder.has-image {
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: var(--neu-shadow-raised);
}

.photo-placeholder.has-image:hover {
    box-shadow: var(--neu-shadow-hover), 0 0 26px rgba(201, 168, 76, 0.22);
}

/* Photo sizes */
.photo-avvocato {
    aspect-ratio: 3/4;
    min-height: 400px;
}

.photo-studio-landscape {
    aspect-ratio: 16/10;
    min-height: 250px;
}

.photo-studio-square {
    aspect-ratio: 1/1;
    min-height: 250px;
}

.photo-studio-portrait {
    aspect-ratio: 3/4;
    min-height: 300px;
}

/* Studio Gallery Grid */
.studio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--gap);
}

.studio-gallery .photo-placeholder:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Home studio preview */
.studio-preview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--gap);
}

/* ============================================
   SECTION WITH FLOATING (position context)
   ============================================ */
.section-with-floats {
    position: relative;
    overflow: hidden;
}

.section-with-floats > .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   RESPONSIVE - FLOATING & PARTICLES
   ============================================ */
/* Nota: il blocco 1024px precede quello 768px, altrimenti a parità di
   specificità la regola a due colonne vincerebbe anche su mobile. */
@media (max-width: 1024px) {
    .studio-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .studio-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .studio-gallery .photo-placeholder:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }

    .particles-canvas {
        display: none;
    }

    .studio-gallery {
        grid-template-columns: 1fr;
    }

    .studio-gallery .photo-placeholder:first-child {
        grid-column: 1;
        grid-row: auto;
    }

    .studio-preview-grid {
        grid-template-columns: 1fr;
    }

    /* le min-height combinate con aspect-ratio allargherebbero le foto
       oltre la colonna su schermi stretti */
    .photo-placeholder {
        min-height: 0;
        max-width: 100%;
    }
}

/* ============================================
   REVIEWS CAROUSEL
   ============================================ */
.reviews-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-header .google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: var(--ivory);
    box-shadow: var(--neu-shadow-flat);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(201, 168, 76, 0.45);
    margin-bottom: 20px;
}

.reviews-header .google-badge > i {
    flex-shrink: 0;
}

.reviews-header .google-badge .badge-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--gold);
    font-size: 0.85rem;
}

.reviews-header .google-badge .badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.reviews-header h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 1px;
    margin: 20px auto 0;
    background: var(--gold-line);
}

/* Track wrapper with fade edges */
.reviews-track-wrapper {
    position: relative;
    overflow: hidden;
    padding: 16px 0 24px;
}

.reviews-track-wrapper::before,
.reviews-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 3;
    pointer-events: none;
}

.reviews-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--ivory), transparent);
}

.reviews-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--ivory), transparent);
}

/* Scrolling track */
.reviews-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: reviewsScroll 40s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes reviewsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Review card */
.review-card {
    flex: 0 0 360px;
    max-width: 360px;
    background: var(--ivory);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow-raised);
    border: 1px solid rgba(255, 253, 244, 0.7);
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-shadow);
}

.review-card:hover {
    box-shadow: var(--neu-shadow-hover), 0 0 26px rgba(201, 168, 76, 0.16);
}

.review-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: var(--accent-pale);
    border: 1px solid rgba(201, 168, 76, 0.45);
    box-shadow: var(--neu-shadow-flat);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--green-800);
    flex-shrink: 0;
    text-transform: uppercase;
}

.review-author-info {
    flex: 1;
    min-width: 0;
}

.review-author {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-source .source-icon {
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
    flex-shrink: 0;
    display: inline-block;
}

.review-card svg,
.reviews-section svg {
    max-width: 24px;
    max-height: 24px;
}

.review-source svg {
    max-width: 12px !important;
    max-height: 12px !important;
    width: 12px !important;
    height: 12px !important;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 14px;
}

.review-stars i {
    color: var(--gold);
    font-size: 0.85rem;
    text-shadow: 0 0 8px rgba(201, 168, 76, 0.35);
}

.review-text {
    font-size: 0.98rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    flex: 1;
    position: relative;
    padding-left: 22px;
}

.review-text::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -2px;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--gold);
    opacity: 0.55;
    line-height: 1;
}

/* ============================================
   SOCIAL LINK (Navbar & Footer)
   ============================================ */
.nav-social {
    margin-left: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(246, 242, 230, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--on-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--gold-light);
    border-color: var(--gold);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.nav-links .nav-social a.social-link:hover {
    background: rgba(201, 168, 76, 0.14);
    color: var(--gold-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social .social-link {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE - REVIEWS
   ============================================ */
@media (max-width: 768px) {
    .review-card {
        flex: 0 0 300px;
        padding: 24px;
    }

    .reviews-track-wrapper::before,
    .reviews-track-wrapper::after {
        width: 50px;
    }

    .reviews-track {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .review-card {
        flex: 0 0 270px;
        padding: 22px;
    }

    .review-text {
        font-size: 0.92rem;
    }
}

/* Esito invio form contatti */
.form-status {
    margin: 14px 0 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-status:empty {
    display: none;
}

.form-status.is-ok {
    color: var(--accent-soft);
}

.form-status.is-error {
    color: var(--error);
}

/* ============================================
   SCENE FOTOGRAFICHE (pacchetto immagini)
   ============================================ */

/* --- Fotografia di apertura in hero --- */
.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}

/* Velatura verde: tiene il contrasto del testo sul lato sinistro */
.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(19, 28, 19, 0.95) 0%,
        rgba(19, 28, 19, 0.90) 55%,
        rgba(19, 28, 19, 0.45) 100%);
}

/* Con la foto sotto, monogramma e particelle vanno attenuati */
.hero .hero-decoration {
    opacity: 0.3;
}

.hero .hero-decoration::after {
    opacity: 0.16;
}

/* --- Fasce fotografiche nelle card --- */
.card-media {
    margin: 0 0 22px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    background: var(--green-800);
}

.card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Card della home: fascia a filo del bordo arrotondato */
.preview-card .card-media {
    margin: -34px -28px 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* L'icona diventa un medaglione a cavallo della fascia */
.preview-card .card-media + .neu-icon-circle {
    position: relative;
    z-index: 2;
    margin: -40px auto 18px;
}

/* Pannelli Attività: stessa logica, padding diverso */
.activity-card .card-media {
    margin: -40px -40px 28px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.activity-card .card-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold-line);
}

/* --- CTA con immagine (solo home) --- */
.cta-box.cta-with-media {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 44px;
    align-items: center;
    text-align: left;
    padding: 48px;
}

.cta-box.cta-with-media .cta-content {
    position: relative;
}

.cta-media {
    position: relative;
    z-index: 1;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.cta-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-box.cta-with-media p {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 900px) {
    .cta-box.cta-with-media {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
        padding: 36px 24px;
    }

    .cta-box.cta-with-media .cta-media {
        order: -1;
    }

    .cta-box.cta-with-media p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Su schermo stretto il testo sta sopra la foto: serve un fondo pieno */
    .hero-photo::after {
        background: linear-gradient(180deg,
            rgba(19, 28, 19, 0.90) 0%,
            rgba(19, 28, 19, 0.93) 60%,
            rgba(19, 28, 19, 0.95) 100%);
    }

    .preview-card .card-media {
        margin: -34px -28px 0;
    }

    .activity-card .card-media {
        margin: -28px -28px 24px;
    }
}

/* Statistiche hero: su fotografia servono fondo e testo piu' solidi */
.hero-photo ~ .container .hero-stat {
    background: rgba(19, 28, 19, 0.55);
    border-color: rgba(201, 168, 76, 0.35);
}

.hero-photo ~ .container .hero-stat .stat-label {
    color: rgba(246, 242, 230, 0.72);
}

.hero-photo ~ .container .hero-badge {
    background: rgba(19, 28, 19, 0.55);
}

/* Ancoraggi /attivita#...: l'header fisso coprirebbe il bordo superiore della scheda */
.activity-card[id] {
    scroll-margin-top: 110px;
}
