/* --- SELF-HOSTED FONTS --- */
@font-face {
    font-family: 'Cinzel';
    src: url('fonts/cinzel-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('fonts/cinzel-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('fonts/cinzel-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- VARIABLES & RESET --- */
:root {
    --gold: #D4AF37;
    --gold-light: #B8860B;
    --gold-dark: #AA7E00;
    --bg-dark: #FCFAF5;
    --text-main: #333333;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(212, 175, 55, 0.4);
    --glass-border-hover: rgba(212, 175, 55, 0.6);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

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

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(252, 250, 245, 0.4) 0%, rgba(252, 250, 245, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-logo {
    max-width: 350px;
    margin-bottom: 4rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-choices {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.choice-btn img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: filter 0.3s ease;
}

.choice-btn span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.9;
}

.choice-btn:hover {
    transform: scale(1.1);
}

.choice-btn:hover img {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }

    100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }
}

/* --- NAVIGATION BEHAVIOR --- */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    /* Sfondo bianco come richiesto */
    background: rgba(255, 255, 255, 0.95);
    color: #0A0A0A;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.nav-brand-name {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

/* --- GLASSMORPHISM CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel,
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel {
    padding: 3rem;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(212, 175, 55, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.centered-content {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.card-content ul {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-content li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "duration btn"
        "price btn";
    align-items: center;
    gap: 0.2rem 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.duration {
    grid-area: duration;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price {
    grid-area: price;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
}

/* --- MASSAGE TRIGGER & VARIANTS --- */
.massage-trigger {
    cursor: pointer;
    position: relative;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 250, 245, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.massage-trigger:hover .img-overlay {
    opacity: 1;
}

.img-overlay span {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn:hover,
.massage-trigger:hover .btn {
    background: var(--gold);
    color: var(--bg-dark);
}

.massages-variants {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px dashed var(--glass-border);
    transition: max-height 0.8s ease-in-out, opacity 0.8s ease;
    overflow: hidden;
}

.massages-variants.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.massages-variants:not(.hidden) {
    max-height: 5000px;
    /* arbitrary large value to fit content */
    opacity: 1;
}

.subsection-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* --- A PROPOS SECTION --- */
.a-propos {
    background: linear-gradient(rgba(252, 250, 245, 0.9), rgba(252, 250, 245, 0.9)), url('images/reiki-section.jpeg') center/cover fixed;
}

.propos-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.propos-content h3 {
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
}

.propos-list {
    margin-top: 2rem;
}

.propos-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.propos-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
}

/* --- PORTRAIT LAYOUT --- */
.propos-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.propos-portrait {
    position: sticky;
    top: 120px;
}

.portrait-img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.portrait-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

/* --- BARBARA GALLERY --- */
.barbara-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.barbara-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.barbara-thumb:hover {
    transform: scale(1.05);
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .propos-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .propos-portrait {
        position: static;
        max-width: 220px;
        margin: 0 auto;
    }

    .barbara-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .barbara-thumb {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .barbara-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .barbara-thumb {
        height: 100px;
    }
}

/* --- FORMATIONS SECTION --- */
.event-card {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.event-img {
    flex: 1;
    min-width: 300px;
    height: 100%;
}

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

.event-details {
    flex: 1;
    padding: 3rem 2rem;
}

.event-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.event-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.event-location,
.event-time,
.event-contact {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.event-contact a {
    color: var(--gold);
}

/* Formation blocks (image+key info + detailed content below) */
.formation-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.formation-block .event-card {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.formation-details {
    padding: 2rem 3rem 3rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.formation-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin: 1.8rem 0 0.6rem;
}

.formation-details h4:first-child {
    margin-top: 0;
}

.formation-details ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.formation-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.formation-details p {
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

/* Spacing between event cards and formation blocks */
.formations .event-card.glass-panel,
.formations .formation-block {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .formation-details {
        padding: 1.5rem;
    }
}

/* --- FOOTER --- */
.footer {
    background-color: #F5EFE6;
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-logo {
    max-width: 150px;
    margin: 0 auto 2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.5);
}

.footer-privacy-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: var(--gold);
}

/* --- PRIVACY PAGE --- */
.privacy-section {
    padding-top: 8rem;
}

.privacy-content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--gold);
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
}

.privacy-content ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.privacy-content hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

.privacy-content a {
    color: var(--gold);
}

.privacy-content a:hover {
    color: var(--gold-dark);
}

.privacy-back {
    text-align: center;
    margin-top: 3rem;
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-choices {
        gap: 2rem;
    }

    .choice-btn img {
        height: 80px;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 890px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {

    .event-card {
        flex-direction: column;
    }

    .event-img {
        width: 100%;
        min-width: 0;
        height: auto;
    }
    
    .event-img img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }

    .event-details {
        padding: 2rem 1.5rem;
    }

    .event-details h3 {
        font-size: 1.5rem;
    }

    .event-date {
        font-size: 1rem;
    }

    .event-location,
    .event-time,
    .event-contact {
        font-size: 0.9rem;
    }

    .center-logo {
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- INFOS PRATIQUES & GALLERY --- */
.infos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.infos-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.infos-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.text-small {
    font-size: 0.9rem;
}

.horaires-list {
    margin-bottom: 1.5rem;
}

.horaires-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--glass-border);
    color: var(--text-main);
    font-weight: 500;
}

.horaires-list li:last-child {
    border-bottom: none;
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

/* --- BUTTON RESERVER --- */
.btn-reserver {
    grid-area: btn;
    background-color: var(--gold);
    color: var(--bg-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: none;
    text-align: center;
}

.btn-reserver:hover {
    background-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .infos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero-choices {
        gap: 1rem;
    }

    .choice-btn span {
        font-size: 0.8rem;
    }
}

@media (max-height: 650px) {
    .center-logo {
        margin-bottom: 0rem;
    }
}

@media (max-height: 580px) {
    .center-logo {
        max-width: 150px;
    }
}

/* --- LIGHTBOX --- */
.gallery-img {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

/* --- AUDIO TOGGLE --- */
.audio-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    transform: scale(1.1);
    background: var(--gold);
    color: var(--bg-dark);
}

@media (max-width: 768px) {
    .audio-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}