/*
====================================================================
ETRUSCAFORM v3.0.0 CSS
====================================================================
1. Light mode: orange button hover → text becomes brown
2. Secondary locations cards
3. Scuola di Estetica page template
====================================================================
*/

/* ============================================
   1. BUTTON HOVER — TEXT TO BROWN (LIGHT MODE)
   ============================================
   Applies to .ef-btn--primary, .ef-btn--secondary,
   "Contattaci" and "Chiama ora" buttons.
   In light mode (no [data-theme="dark"]), on hover
   the text on orange bg buttons turns terracotta brown.
   ============================================ */

/* --- Primary buttons (solid orange) --- */
:root:not([data-theme="dark"]) .ef-btn--primary:hover,
:root:not([data-theme="dark"]) .ef-btn--primary:focus {
    background-color: var(--color-secondary-dark, #c06f33) !important;
    color: var(--color-primary, #39110e) !important;
    border-color: var(--color-secondary-dark, #c06f33) !important;
}

/* --- Secondary buttons (orange variant / "Chiama ora") --- */
:root:not([data-theme="dark"]) .ef-btn--secondary:hover,
:root:not([data-theme="dark"]) .ef-btn--secondary:focus {
    background-color: var(--color-secondary-dark, #c06f33) !important;
    color: var(--color-primary, #39110e) !important;
}

/* --- Also cover WooCommerce add-to-cart and general .ef-btn --- */
:root:not([data-theme="dark"]) .ef-contact-cta .ef-btn:hover,
:root:not([data-theme="dark"]) .ef-hero__cta .ef-btn--primary:hover,
:root:not([data-theme="dark"]) .ef-cta__buttons .ef-btn--primary:hover {
    color: var(--color-primary, #39110e) !important;
}

/* --- "Chiama ora" button on Contact page --- */
:root:not([data-theme="dark"]) .ef-contact-cta .ef-btn--secondary:hover {
    color: var(--color-primary, #39110e) !important;
    background-color: var(--color-secondary-dark, #c06f33) !important;
}

/* --- "Contattaci" button on homepage hero --- */
:root:not([data-theme="dark"]) .ef-hero__cta .ef-btn--primary:hover,
:root:not([data-theme="dark"]) .ef-cta .ef-btn--primary:hover {
    color: var(--color-primary, #39110e) !important;
}

/* --- Make sure SVG icons in buttons also inherit brown color --- */
:root:not([data-theme="dark"]) .ef-btn--primary:hover svg,
:root:not([data-theme="dark"]) .ef-btn--secondary:hover svg {
    color: var(--color-primary, #39110e) !important;
    stroke: var(--color-primary, #39110e) !important;
}

/* --- Outline button hover (keep existing behavior but improve) --- */
:root:not([data-theme="dark"]) .ef-btn--outline:hover {
    background-color: var(--color-secondary, #d07c39) !important;
    color: var(--color-primary, #39110e) !important;
    border-color: var(--color-secondary, #d07c39) !important;
}

/* ============================================
   2. SECONDARY LOCATIONS — CONTACT PAGE
   ============================================ */

.ef-secondary-locations {
    padding: 5rem 0;
    background: linear-gradient(180deg, #fafaf8 0%, #f5f0eb 100%);
}

[data-theme="dark"] .ef-secondary-locations {
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
}

.ef-secondary-locations__header {
    text-align: center;
    margin-bottom: 3rem;
}

.ef-secondary-locations__header h2 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-primary, #39110e);
    margin: 0.5rem 0;
}

[data-theme="dark"] .ef-secondary-locations__header h2 {
    color: #fff;
}

.ef-secondary-locations__header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

[data-theme="dark"] .ef-secondary-locations__header p {
    color: rgba(255,255,255,0.6);
}

.ef-secondary-locations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ef-location-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

[data-theme="dark"] .ef-location-card {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ef-location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.ef-location-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d07c39 0%, #c06f33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: #fff;
}

.ef-location-card__title {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-primary, #39110e);
    margin: 0 0 1rem 0;
}

[data-theme="dark"] .ef-location-card__title {
    color: #fff;
}

.ef-location-card__address,
.ef-location-card__phone,
.ef-location-card__email {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.6rem 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

[data-theme="dark"] .ef-location-card__address,
[data-theme="dark"] .ef-location-card__phone,
[data-theme="dark"] .ef-location-card__email {
    color: rgba(255,255,255,0.7);
}

.ef-location-card__address svg,
.ef-location-card__phone svg,
.ef-location-card__email svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-secondary, #d07c39);
}

.ef-location-card__address a,
.ef-location-card__phone a,
.ef-location-card__email a {
    color: var(--color-secondary, #d07c39);
    text-decoration: none;
    transition: color 0.2s;
}

.ef-location-card__address a:hover,
.ef-location-card__phone a:hover,
.ef-location-card__email a:hover {
    color: var(--color-secondary-dark, #c06f33);
    text-decoration: underline;
}

.ef-location-card__map {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ef-location-card__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.ef-location-card__link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary, #d07c39);
    text-decoration: none;
    transition: all 0.2s;
}

.ef-location-card__link:hover {
    color: var(--color-secondary-dark, #c06f33);
    transform: translateX(3px);
}

/* ============================================
   3. SCUOLA DI ESTETICA PAGE TEMPLATE
   ============================================ */

/* --- Hero --- */
.ef-estetica-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #39110e 0%, #5a1b17 40%, #7a3020 70%, #d07c39 100%);
}

.ef-estetica-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ef-estetica-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.ef-estetica-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
}

.ef-estetica-hero__badge {
    display: inline-block;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-secondary, #d07c39);
    background: rgba(208,124,57,0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.ef-estetica-hero__logo {
    max-width: 280px;
    margin: 0 auto 1.5rem;
}

.ef-estetica-hero__logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.ef-estetica-hero h1 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.ef-estetica-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.ef-estetica-hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Intro / About section --- */
.ef-estetica-about {
    padding: 5rem 0;
    background: #fafaf8;
}

[data-theme="dark"] .ef-estetica-about {
    background: #141414;
}

.ef-estetica-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ef-estetica-about__image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.ef-estetica-about__image img {
    width: 100%;
    height: auto;
    display: block;
}

.ef-estetica-about__text {
    padding: 1rem 0;
}

.ef-estetica-about__text h2 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-primary, #39110e);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .ef-estetica-about__text h2 {
    color: #fff;
}

.ef-estetica-about__text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

[data-theme="dark"] .ef-estetica-about__text p {
    color: rgba(255,255,255,0.75);
}

.ef-estetica-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.ef-estetica-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(208,124,57,0.06);
    border-radius: 12px;
}

.ef-estetica-stat__number {
    display: block;
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary, #d07c39);
}

.ef-estetica-stat__label {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .ef-estetica-stat {
    background: rgba(208,124,57,0.1);
}

[data-theme="dark"] .ef-estetica-stat__label {
    color: rgba(255,255,255,0.5);
}

/* --- Courses section --- */
.ef-estetica-courses {
    padding: 5rem 0;
    background: #fff;
}

[data-theme="dark"] .ef-estetica-courses {
    background: #1a1a1a;
}

.ef-estetica-courses__header {
    text-align: center;
    margin-bottom: 3rem;
}

.ef-estetica-courses__header h2 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-primary, #39110e);
    margin: 0.5rem 0;
}

[data-theme="dark"] .ef-estetica-courses__header h2 {
    color: #fff;
}

.ef-estetica-courses__header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

[data-theme="dark"] .ef-estetica-courses__header p {
    color: rgba(255,255,255,0.6);
}

.ef-estetica-courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Course card --- */
.ef-course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .ef-course-card {
    background: #1e1e1e;
    border-color: #333;
}

.ef-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.ef-course-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary, #d07c39), var(--color-primary, #39110e));
}

.ef-course-card__body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ef-course-card__title {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary, #39110e);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .ef-course-card__title {
    color: var(--color-secondary, #d07c39);
}

.ef-course-card__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ef-course-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    background: rgba(208,124,57,0.1);
    color: var(--color-secondary-dark, #c06f33);
}

[data-theme="dark"] .ef-course-card__tag {
    background: rgba(208,124,57,0.15);
    color: var(--color-secondary, #d07c39);
}

.ef-course-card__tag svg {
    width: 14px;
    height: 14px;
}

.ef-course-card__schedule {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-theme="dark"] .ef-course-card__schedule {
    color: rgba(255,255,255,0.5);
}

.ef-course-card__desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
}

[data-theme="dark"] .ef-course-card__desc {
    color: rgba(255,255,255,0.7);
}

.ef-course-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="dark"] .ef-course-card__footer {
    border-top-color: #333;
}

.ef-course-card__price {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-secondary, #d07c39);
}

/* --- Contact / CTA bar --- */
.ef-estetica-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary, #39110e) 0%, #5a1b17 100%);
    text-align: center;
}

.ef-estetica-cta h2 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    color: #fff;
    margin-bottom: 0.8rem;
}

.ef-estetica-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.ef-estetica-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ef-estetica-cta .ef-btn--primary {
    background: var(--color-secondary, #d07c39);
    color: #fff;
    border: 2px solid var(--color-secondary, #d07c39);
}

.ef-estetica-cta .ef-btn--primary:hover {
    background: var(--color-secondary-dark, #c06f33);
    color: var(--color-primary, #39110e) !important;
}

.ef-estetica-cta .ef-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.ef-estetica-cta .ef-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* --- Contact info bar --- */
.ef-estetica-contact-bar {
    padding: 3rem 0;
    background: #fafaf8;
}

[data-theme="dark"] .ef-estetica-contact-bar {
    background: #141414;
}

.ef-estetica-contact-bar__grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ef-estetica-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #555;
    font-size: 0.95rem;
}

[data-theme="dark"] .ef-estetica-contact-item {
    color: rgba(255,255,255,0.7);
}

.ef-estetica-contact-item svg {
    color: var(--color-secondary, #d07c39);
    flex-shrink: 0;
}

.ef-estetica-contact-item a {
    color: var(--color-secondary, #d07c39);
    text-decoration: none;
}

.ef-estetica-contact-item a:hover {
    text-decoration: underline;
}

/* Social links */
.ef-estetica-socials {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

.ef-estetica-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(208,124,57,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary, #d07c39);
    transition: all 0.3s;
}

.ef-estetica-socials a:hover {
    background: var(--color-secondary, #d07c39);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Powered by Etruscaform --- */
.ef-estetica-powered {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fafaf8;
}

[data-theme="dark"] .ef-estetica-powered {
    background: #141414;
    border-top-color: #333;
}

.ef-estetica-powered p {
    color: #999;
    font-size: 0.85rem;
}

.ef-estetica-powered a {
    color: var(--color-secondary, #d07c39);
    font-weight: 600;
    text-decoration: none;
}

/* --- Certifications --- */
.ef-estetica-certs {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.ef-estetica-certs img {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.ef-estetica-certs img:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 768px) {
    .ef-estetica-about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ef-estetica-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .ef-estetica-courses__grid {
        grid-template-columns: 1fr;
    }

    .ef-estetica-contact-bar__grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .ef-secondary-locations__grid {
        grid-template-columns: 1fr;
    }

    .ef-estetica-hero {
        min-height: 45vh;
    }

    .ef-estetica-hero__logo {
        max-width: 200px;
    }
}
