/**
 * Fratelli Di Rosa - Agenzia Funebre
 * Stylesheet principale - Tema elegante oro e grigio
 * Palette: #f7f4ef / #ede9e1 / #c9a84c (oro) / #8a8a8a (grigio)
 */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */

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

:root {
    /* Palette elegante oro e grigio */
    --bg-deep: #f7f4ef;
    --bg-primary: #ede9e1;
    --bg-card: #ffffff;
    --bg-elevated: #faf8f4;

    --accent: #937a25;
    --accent-light: #b8972f;
    --accent-silver: #8a8a8a;
    --accent-bright: #d4af37;

    --text-primary: #2c2c2c;
    --text-light: #4a4a4a;
    --text-medium: #7a7a7a;
    --text-muted: #a0a0a0;

    --border-cool: rgba(201, 168, 76, 0.15);
    --border-elevated: rgba(201, 168, 76, 0.30);

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.10);

    --nav-height: 72px;
    --container-max: 1200px;

    --transition-fast: .25s ease;
    --transition-base: .4s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: .7s cubic-bezier(.4, 0, .2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   2. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    z-index: 9999;
    transition: width .1s linear;
    box-shadow: 0 0 10px rgba(201, 168, 76, .5);
}

/* ==========================================================================
   3. HEADER / NAVBAR (slim)
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    transition: background var(--transition-base), backdrop-filter var(--transition-base), border-color var(--transition-base);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(247, 244, 239, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-cool);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

/* Logo come immagine */
.nav-logo-img {
    height: 44px;
    width: auto;
    display: block;
    margin-top: 8px;
}

/* Fallback icon (legacy) */
.nav-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    box-shadow: 0 4px 14px rgba(201, 168, 76, .3);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
}

.nav-logo-text span {
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-top: 3px;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition-fast);
    position: relative;
    padding: 4px 0;
    letter-spacing: .3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent-light);
    transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

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

/* ==========================================================================
   4. DECORAZIONI DI SFONDO
   ========================================================================== */

.bg-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    color: var(--accent);
}

.bg-cross rect {
    fill: currentColor;
}

.geo-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: .05;
}

.geo-1 { top: 12%; left: 5%; width: 120px; height: 120px; }
.geo-2 { top: 55%; right: 8%; width: 180px; height: 180px; opacity: .03; }
.geo-3 { bottom: 15%; left: 12%; width: 90px; height: 90px; }

/* Numero decorativo di sezione */
.section-number {
    position: absolute;
    top: 30px;
    right: 6%;
    font-family: 'Playfair Display', serif;
    font-size: 14rem;
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    opacity: .06;
    line-height: .8;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ==========================================================================
   5. HERO - SPLIT 55/45
   ========================================================================== */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    background: linear-gradient(170deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { position: relative; }

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-light);
    margin-bottom: 24px;
    padding: 8px 18px;
    background: rgba(201, 168, 76, .08);
    border: 1px solid var(--border-cool);
    border-radius: 50px;
}

.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 10px var(--accent-bright);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--accent-light);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 28px;
}

.hero-phrase {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 8px 24px rgba(201, 168, 76, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 168, 76, .4);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-light);
    border-color: var(--border-elevated);
}

.btn-ghost:hover {
    background: rgba(201, 168, 76, .1);
    border-color: var(--accent-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(201, 168, 76, .08);
    border: 1px solid var(--border-cool);
    border-radius: 50px;
    font-size: .82rem;
    color: var(--text-light);
}

.hero-badge i { color: var(--accent-light); }

.hero-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero-phones a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    border-radius: 8px;
    color: var(--text-light);
    font-size: .85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.hero-phones a:hover {
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.hero-phones .phone-name {
    font-size: .7rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.hero-phones i { color: var(--accent-light); font-size: .85rem; }

/* Foto split destra */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1.1;
    max-width: 520px;
    margin-left: auto;
    z-index: 2;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-elevated);
    transform: perspective(1000px) rotateY(-3deg);
    transition: transform var(--transition-slow);
}

.hero-photo-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
}

.hero-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .5) 100%);
    pointer-events: none;
}

.hero-photo-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    z-index: 3;
}

.hero-photo-badge-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-bright);
    margin-bottom: 4px;
    font-weight: 600;
}

.hero-photo-badge-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.hero-photo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 115%;
    height: 115%;
    border: 1px solid var(--accent);
    border-radius: 16px;
    opacity: .15;
    z-index: -1;
    pointer-events: none;
}

.hero-photo-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    border: 1px solid var(--accent);
    border-radius: 18px;
    opacity: .07;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   6. SECTIONS (base)
   ========================================================================== */

.section {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.section-header h2 em {
    font-style: italic;
    color: var(--accent-light);
    font-weight: 400;
}

.section-header > p {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 620px;
    line-height: 1.7;
}

/* ==========================================================================
   7. CHI SIAMO - editoriale
   ========================================================================== */

.about {
    background: var(--bg-primary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-text p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 700;
    font-style: italic;
    float: left;
    line-height: 1;
    padding: 4px 14px 0 0;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text strong {
    color: var(--accent-light);
    font-weight: 600;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--nav-height) + 32px);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.about-card > p {
    font-size: .88rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 22px;
}

.about-cert {
    list-style: none;
    border-top: 1px solid var(--border-cool);
    padding-top: 20px;
}

.about-cert li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.about-cert li i {
    color: var(--accent-light);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.about-cert li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   8. SERVIZI - layout masonry asimmetrico
   ========================================================================== */

.services {
    background: var(--bg-deep);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(240px, auto);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding: 32px 28px;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border-cool);
    transition: transform var(--transition-base), border-color var(--transition-base);
    isolation: isolate;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, rgba(10, 14, 21, .55) 0%, rgba(10, 14, 21, .92) 75%, rgba(10, 14, 21, .97) 100%);
    z-index: 1;
    transition: background var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-elevated);
}

.service-card:hover::before {
    background: linear-gradient(175deg, rgba(10, 14, 21, .4) 0%, rgba(10, 14, 21, .88) 75%, rgba(10, 14, 21, .97) 100%);
}

.service-card-content {
    position: relative;
    z-index: 2;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(201, 168, 76, .15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--accent-bright);
}

.service-card h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.65;
}

/* Asymmetric grid layout - 8 cards */
.service-card:nth-child(1) { grid-column: span 4; grid-row: span 2; min-height: 380px; }
.service-card:nth-child(2) { grid-column: span 2; }
.service-card:nth-child(3) { grid-column: span 2; }
.service-card:nth-child(4) { grid-column: span 3; }
.service-card:nth-child(5) { grid-column: span 3; }
.service-card:nth-child(6) { grid-column: span 2; }
.service-card:nth-child(7) { grid-column: span 2; }
.service-card:nth-child(8) { grid-column: span 2; }

.service-card:nth-child(1) h3 { font-size: 1.8rem; }
.service-card:nth-child(1) p { font-size: 1rem; max-width: 540px; }

/* ==========================================================================
   9. PERCHÉ SCEGLIERCI - Timeline
   ========================================================================== */

.why-us {
    background: var(--bg-primary);
    padding: 110px 0;
}

.timeline {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
    z-index: 2;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent);
    opacity: .4;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -43px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(201, 168, 76, .4);
}

.timeline-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.timeline-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-light);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.timeline-item h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.timeline-item p {
    font-size: .98rem;
    color: var(--text-light);
    line-height: 1.75;
    padding-left: 64px;
}

/* ==========================================================================
   10. TESTIMONIANZE
   ========================================================================== */

.testimonials {
    background: var(--bg-deep);
    padding: 110px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    border-radius: 16px;
    padding: 36px 32px;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    margin-bottom: 16px;
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: var(--accent-bright);
    opacity: .5;
}

.testimonial-card > p {
    font-size: .95rem;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-cool);
}

.testimonial-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

/* ==========================================================================
   11. GALLERIA - carousel orizzontale
   ========================================================================== */

.gallery {
    background: var(--bg-primary);
    padding: 110px 0;
}

.gallery-carousel-wrap {
    position: relative;
    z-index: 2;
    margin: 0 -24px;
    padding: 0 24px;
}

.gallery-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-card);
}

.gallery-carousel::-webkit-scrollbar { height: 6px; }
.gallery-carousel::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 3px; }
.gallery-carousel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.gallery-item {
    flex: 0 0 340px;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-cool);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .3) 100%);
    pointer-events: none;
    opacity: .6;
    transition: opacity var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
}

.gallery-item:hover::after { opacity: 0; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-hint {
    text-align: center;
    margin-top: 20px;
    font-size: .82rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-hint i { margin: 0 8px; color: var(--accent-light); }

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 21, .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-overlay.show { display: flex; }

.lightbox-overlay img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    transition: opacity .3s ease;
    box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(26, 31, 46, .8);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    font-size: 1.6rem;
}

.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .85rem;
    color: #fff;
    background: rgba(26, 31, 46, .8);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   12. CONTATTI - info cards + form
   ========================================================================== */

.contact {
    background: var(--bg-deep);
    padding: 110px 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 auto 16px;
}

.contact-card h4 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.contact-card p,
.contact-card a {
    font-size: .92rem;
    color: var(--text-light);
    line-height: 1.6;
    word-break: break-word;
    transition: color var(--transition-fast);
}

.contact-card a:hover { color: var(--accent-bright); }

.contact-card-name {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* Form centrato */
.contact-form-wrap {
    max-width: 720px;
    margin: 0 auto 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    border-radius: 18px;
    padding: 48px 44px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-wrap > p {
    text-align: center;
    font-size: .95rem;
    color: var(--text-medium);
    margin-bottom: 36px;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-deep);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    background: var(--bg-elevated);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

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

.form-group.error input,
.form-group.error textarea {
    border-color: #c17878;
    background: rgba(193, 120, 120, .06);
}

.error-message {
    display: none;
    font-size: .78rem;
    color: #c17878;
    margin-top: 6px;
}

.form-group.error .error-message { display: block; }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border-cool);
    border-radius: 10px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-light);
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

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

.form-checkbox.error {
    border-color: #c17878;
    background: rgba(193, 120, 120, .06);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: .95rem;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

.form-success i {
    font-size: 3rem;
    color: var(--accent-bright);
    margin-bottom: 16px;
    display: block;
}

.form-success h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-medium);
    font-size: .95rem;
}

/* Mappa */
.contact-map { position: relative; z-index: 2; }

.contact-map h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.map-container {
    position: relative;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-cool);
    background: var(--bg-card);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.map-placeholder p {
    color: var(--text-medium);
    font-size: .9rem;
    margin-bottom: 8px;
}

.map-placeholder a {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-primary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-cool);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-medium);
    font-size: .9rem;
    line-height: 1.7;
    margin: 20px 0;
    max-width: 360px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: .88rem;
    color: var(--text-light);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover { color: var(--accent-light); }
.footer-links a i { color: var(--accent); font-size: .8rem; }

.footer-bottom {
    border-top: 1px solid var(--border-cool);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: .8rem;
    color: var(--text-muted);
}

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

.footer-bottom-links a {
    font-size: .8rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   14. COOKIE BANNER & MODAL
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1160px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-elevated);
    border-radius: 16px;
    padding: 24px 28px;
    z-index: 9997;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    transition: transform .5s ease;
}

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

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

.cookie-banner-text p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 620px;
}

.cookie-banner-text a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
}

.cookie-btn-accept:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201, 168, 76, .3); }

.cookie-btn-necessary,
.cookie-btn-settings {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-elevated);
}

.cookie-btn-necessary:hover,
.cookie-btn-settings:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay.show { display: flex; }

.cookie-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-elevated);
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.cookie-modal h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cookie-modal > p {
    font-size: .9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 28px;
}

.cookie-category {
    padding: 18px 0;
    border-top: 1px solid var(--border-cool);
}

.cookie-category:first-of-type { padding-top: 0; border-top: none; }

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.cookie-category p {
    font-size: .85rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.cookie-always-active {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-elevated);
    border-radius: 24px;
    transition: var(--transition-fast);
    border: 1px solid var(--border-cool);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent-light);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: flex-end;
}

/* ==========================================================================
   15. WHATSAPP BUTTON
   ========================================================================== */

.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
    z-index: 9996;
    transition: transform var(--transition-fast);
}

.whatsapp-btn:hover { transform: scale(1.08); }

.whatsapp-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25d366;
    opacity: .4;
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: .4; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   16. ANIMAZIONI (fade-in + varianti)
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(.9);
    transition: opacity .8s ease, transform .8s cubic-bezier(.4, 0, .2, 1);
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.fade-in-blur {
    opacity: 0;
    filter: blur(10px);
    transition: opacity .9s ease, filter .9s ease;
}

.fade-in-blur.visible {
    opacity: 1;
    filter: blur(0);
}

.stagger-1 { transition-delay: .08s; }
.stagger-2 { transition-delay: .16s; }
.stagger-3 { transition-delay: .24s; }
.stagger-4 { transition-delay: .32s; }
.stagger-5 { transition-delay: .40s; }
.stagger-6 { transition-delay: .48s; }
.stagger-7 { transition-delay: .56s; }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .service-card:nth-child(1) { grid-column: span 4; grid-row: auto; }
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(6),
    .service-card:nth-child(7),
    .service-card:nth-child(8) { grid-column: span 2; }
    .service-card:nth-child(4),
    .service-card:nth-child(5) { grid-column: span 2; }

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

    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 460px; margin: 0 auto; }
    .hero-content { text-align: center; }
    .hero-content .hero-divider { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .hero-phrase { margin-left: auto; margin-right: auto; }

    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-card { position: static; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: rgba(247, 244, 239, .97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--border-cool);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: right var(--transition-base);
    }

    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.2rem; }

    .hamburger { display: flex; }

    .section { padding: 80px 0; }

    .section-number { font-size: 8rem; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card,
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4),
    .service-card:nth-child(5),
    .service-card:nth-child(6),
    .service-card:nth-child(7),
    .service-card:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
        min-height: 280px;
    }

    .contact-cards { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 32px 24px; }
    .gallery-item { flex: 0 0 80vw; height: 380px; }

    .timeline { padding-left: 40px; }
    .timeline::before { left: 10px; }
    .timeline-item::before { left: -38px; }
    .timeline-item p { padding-left: 0; }

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

    .footer-content { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .lightbox-close { top: 16px; right: 16px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .cookie-banner { left: 12px; right: 12px; padding: 20px; bottom: 12px; }
    .cookie-banner-content { flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; }

    .nav-logo-img { height: 36px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-phones a { font-size: .78rem; padding: 8px 14px; }
    .btn { padding: 12px 22px; font-size: .82rem; }
    .section-header h2 { font-size: 1.7rem; }
    .service-card { padding: 24px 20px; }
    .service-card h3 { font-size: 1.2rem; }
    .service-card:nth-child(1) h3 { font-size: 1.45rem; }
    .contact-form-wrap { padding: 28px 18px; }
    .hero-photo-badge { left: 16px; right: 16px; padding: 12px 16px; }
    .hero-photo-badge-name { font-size: 1rem; }
    .whatsapp-btn { width: 52px; height: 52px; font-size: 1.5rem; bottom: 16px; right: 16px; }
    .nav-logo-img { height: 32px; }
}

/* ============================================
   18. LEGAL PAGES (privacy / cookie-policy)
   ============================================ */

.legal-page {
    padding: 140px 0 100px;
    background: var(--bg-deep);
    min-height: 100vh;
    position: relative;
}

.legal-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-cool);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 30px;
    padding: 10px 18px;
    border: 1px solid var(--border-cool);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.legal-back:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateX(-4px);
}

.legal-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-light);
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-cool);
}

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

.legal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 0.96rem;
    margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 76, 0.4);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--accent-light);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--border-cool);
    color: var(--text-light);
}

.legal-content th {
    background: var(--bg-primary);
    color: var(--accent-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page { padding: 110px 0 70px; }
    .legal-content { padding: 40px 26px; border-radius: 12px; }
    .legal-content h1 { font-size: 1.9rem; }
    .legal-content h2 { font-size: 1.3rem; }
}
