/* -------------------------------------------------------------------------
   VARIABILI E STILE GLOBALE (PALETTE VIOLA E FONT ELEGANTI)
------------------------------------------------------------------------- */
:root {
    --color-primary: #BC53BC; /* Viola brillante (CTA, enfasi) */
    --color-secondary: #B18FBC; /* Viola chiaro (Sfondo di blocchi) */
    --color-accent: #8800FF; /* Viola/Magenta scuro (Hover) */
    --color-dark: #4B4B4D; /* Grigio scuro/Viola scuro (Testo, Sfondo CTA scuro) */
    --color-light: #FFFFFF; /* Testo chiaro */
		--color-light-secondary: #f1daf1; /* Rosa chiaro */

    --border-radius: 12px;
    --image-radius: 100px;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lora', serif;
}

/* Reset Bootstrap fonts per usare i custom font globalmente */
body {
    font-family: var(--font-sans);
    color: var(--color-dark);
}

h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--font-serif);
    color: var(--color-dark);
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

/* Stile comune per i titoli di sezione */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-top: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin: 10px auto 0;
}

/* -------------------------------------------------------------------------
   COMPONENTI (BOTTONI - Mappatura classi Bootstrap)
------------------------------------------------------------------------- */
.primary-button {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 12px 25px;
}

.secondary-button:hover {
    background-color: black;
    color: var(--color-light);
}

.outline-button {
		width: 350px;
    background: var(--color-secondary);
    color: var(--color-light);
    border: 2px solid var(--color-light-secondary);
    border-radius: var(--border-radius);
    padding: 10px 23px;
    transition: all 0.3s ease;
}

.outline-button:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.service-cta {
	font-weight: bold;
}

/* -------------------------------------------------------------------------
   HEADER E SELETTORE LINGUA
------------------------------------------------------------------------- */
.header {
    background-color: var(--color-light);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.2s;
}

.lang-button:hover {
    opacity: 1;
    transform: scale(1.05);
}

.lang-button.active {
    opacity: 1;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 3px;
}

.flag-icon {
    width: 1.1em;
    border-radius: 7px;
}

/* -------------------------------------------------------------------------
   SEZIONE INTRODUTTIVA / HERO (Minimal Gucci Osteria)
------------------------------------------------------------------------- */
.intro-section {
    max-width: 1400px;
    margin: 0 auto;
}

.intro-section .pre-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro-content-grid {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 2rem;
}

.intro-info-left, .intro-info-right {
    text-align: left;
    padding-top: 50px;
}

.intro-info-right {
    text-align: right;
}

.intro-title {
    font-size: 2.2rem;
    line-height: 1.2;
}

.info-details {
    font-weight: 600;
}

/* Contenitore Immagine Centrale */
.intro-image-container {
    position: relative;
    text-align: center;
}

.intro-image {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-secondary);

    /* Bordo arrotondato stile "a porta" per l'immagine centrale */
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    position: relative;
    margin: 0 auto;
    z-index: 5;
    padding: 15px 35px;
		font-weight: bold;
}

/* -------------------------------------------------------------------------
   SEZIONE SERVIZI (CARTE "A PORTA")
------------------------------------------------------------------------- */
.services-section {
    background-color: var(--color-light);
}

.service-card {
    background-color: var(--color-light-secondary);
    border-radius: var(--border-radius);
    border: none;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Immagine con l'effetto "A Porta / Arco" */
.card-image-wrapper {
    background-color: #F8F8F8;
    overflow: hidden;
}

.card-image {
    min-height: 350px;
    width: 100%;
    border-top-left-radius: var(--image-radius);
    border-top-right-radius: var(--image-radius);

    background-size: cover;
    background-position: center;
}

/* Servizio 5 (Full width) - Sovrascrive le classi Bootstrap per il layout custom */
.service-card.full-width {
    background-color: var(--color-light);
    border: 1px solid var(--color-secondary);
}

.service-card.full-width .card-content-wrap {
    padding: 10px 30px;
}

.service-card.full-width .card-image {
    min-height: 377px;
    border-radius: 0;
}

/* -------------------------------------------------------------------------
   SEZIONE CONTATTI E MODULO
------------------------------------------------------------------------- */
.contact-form-section {
    background-color: var(--color-secondary);
}

#contactForm {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
}

/* Blocco Workshop di Gruppo (CTA finale) */
.group-workshop-block {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-radius: var(--border-radius);
    text-align: center;
}
.group-workshop-block h3 {
    color: var(--color-light);
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.group-workshop-block p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.group-workshop-block .mail-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}
.group-workshop-block .mail-link:hover {
    color: var(--color-light);
}

/* -------------------------------------------------------------------------
   SEZIONE TESTIMONIANZE CON SLIDER
------------------------------------------------------------------------- */
.testimonials-section {
    background-color: var(--color-light);
    position: relative;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin-bottom: 20px;
    padding: 0 20px;

    /* RIMOSSO: pointer-events: none; */
}

.testimonial-card {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    flex-shrink: 0;
    width: calc(50% - 15px);
    margin-right: 30px;
    text-align: left;
    padding: 30px;

    pointer-events: auto; /* Mantenuto, ma ora inutile se rimosso dal genitore */
}

.testimonial-card:last-child {
    margin-right: 0;
}

.testimonial-card .quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    min-height: 80px;
}

.testimonial-card .author {
    color: var(--color-primary);
    font-weight: 600;
}

/* Stile per i pulsanti di navigazione SLIDER */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    padding: 14px 21px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.slider-button:hover {
    background-color: var(--color-accent);
}

.prev-button {
    left: 0;
}

.next-button {
    right: 0;
}


/* -------------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-secondary);
}

.footer .footer-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer .footer-link:hover {
    color: var(--color-light);
}


/* -------------------------------------------------------------------------
   MEDIA QUERIES per la responsività
------------------------------------------------------------------------- */

@media (max-width: 991px) {
    /* Intro Section Tablet/Mobile */
    .intro-info-left, .intro-info-right {
        padding-top: 0;
        text-align: center !important;
        order: 1;
    }

    .intro-image-container {
        order: 2;
    }

    .intro-image {
        height: 350px;
        border-radius: 50px;
    }

    .hero-cta {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        transform: none;
        display: block;
    }

    /* Servizi Section Tablet/Mobile */
    .service-card.full-width .card-content-wrap {
        padding: 20px;
    }

    .service-card.full-width .card-image {
        border-radius: var(--image-radius) var(--image-radius) 0 0;
        min-height: 200px;
    }

    /* Testimonianze Section Mobile */
    .testimonial-card {
        width: calc(100% - 20px);
        margin-right: 20px;
    }

    .prev-button { left: -10px; }
    .next-button { right: -10px; }
}

@media (max-width: 550px) {
    h1 { font-size: 2.2rem; }
    .intro-title { font-size: 1.8rem; }
}

/* Brevo */
#sib-container input:-ms-input-placeholder {
	text-align: left;
	font-family: Helvetica, sans-serif;
	color: #c0ccda;
}
#sib-container input::placeholder {
	text-align: left;
	font-family: Helvetica, sans-serif;
	color: #c0ccda;
}
#sib-container textarea::placeholder {
	text-align: left;
	font-family: Helvetica, sans-serif;
	color: #c0ccda;
}
#sib-container a {
	text-decoration: underline;
	color: #2BB2FC;
}