/* =============================================
   EQUINE PRACTICE – Modern Clean Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700;900&display=swap');

/* =============================================
   1. CSS VARIABLES
   ============================================= */
:root {
    /* Brand Colors - based on logo */
    --ep-primary:       hsl(232, 83%, 30%);   /* Blu logo #0d1b8e */
    --ep-primary-dark:  hsl(232, 80%, 20%);   /* Blu scuro */
    --ep-primary-light: hsl(232, 70%, 38%);   /* Blu medio */
    --ep-accent:        hsl(5, 100%, 40%);    /* Rosso logo #cc1100 */
    --ep-accent-dark:   hsl(5, 100%, 33%);    /* Rosso scuro */
    --ep-accent-light:  hsl(5, 100%, 50%);    /* Rosso chiaro */
    --ep-cream:         hsl(228, 43%, 97%);   /* Background chiaro */
    --ep-white:         #ffffff;
    --ep-dark:          hsl(234, 28%, 14%);
    --ep-gray:          hsl(210, 7%, 46%);
    --ep-border:        hsl(220, 20%, 93%);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows - light and refined */
    --shadow-sm: 0 1px 3px hsla(232, 83%, 30%, 0.06);
    --shadow: 0 4px 12px hsla(232, 83%, 30%, 0.08);
    --shadow-lg: 0 12px 32px hsla(232, 83%, 30%, 0.1);

    /* Transitions - smooth and quick */
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   2. RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ep-dark);
    background: var(--ep-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ep-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

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

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

::selection {
    background-color: var(--ep-accent);
    color: var(--ep-white);
}

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

.section {
    padding: 5rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* =============================================
   4. COMPONENTS
   ============================================= */

/* Section Header */
.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ep-accent);
    margin-bottom: 0.5rem;
}

.divider-accent {
    width: 3.5rem;
    height: 4px;
    background: var(--ep-accent);
    margin-bottom: 1.25rem;
}

.text-center .divider-accent {
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--ep-gray);
    max-width: 40rem;
}

.section-header.text-center p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* =============================================
   5. TOP BAR & NAVBAR
   ============================================= */

/* Top Bar */
.top-bar {
    background: var(--ep-dark);
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 0;
    font-size: 0.813rem;
}

.top-bar-info {
    display: flex;
    gap: 2rem;
    margin: 0;
}

.top-bar-info li {
    display: inline-flex;
    align-items: center;
}

.top-bar-info a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.top-bar-info a:hover {
    color: var(--ep-accent);
}

.emergency-link {
    color: var(--ep-accent);
    font-weight: 700;
    transition: var(--transition);
}

.emergency-link:hover {
    color: var(--ep-accent-light);
}

/* Main Navbar */
#mainNav {
    background: var(--ep-dark);
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--ep-accent);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: var(--transition);
}

#mainNav .container {
    max-width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
}

#mainNav.scrolled {
    padding: 0.375rem 2rem;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

#mainNav .navbar-brand img.ep-logo {
    height: 120px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

#mainNav .nav-link {
    color: var(--ep-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.875rem;
    position: relative;
    transition: var(--transition);
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--ep-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--ep-accent);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    transform: scaleX(1);
}

#mainNav .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
}

#mainNav .navbar-nav {
    flex: 1;
    justify-content: center;
}

#mainNav .navbar-collapse > div:last-child {
    margin-left: auto !important;
}

.navbar-toggler {
    border: 2px solid var(--ep-primary);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231c3d5a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =============================================
   6. HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.7)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    padding-top: 20vh;
    animation: fadeInUp 0.7s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ep-accent);
    background: rgba(204, 17, 0, 0.1);
    border: 1px solid rgba(204, 17, 0, 0.3);
    padding: 0.375rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ep-white);
    margin-bottom: 1.25rem;
}

.hero-content h1 span {
    color: var(--ep-accent);
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    margin-bottom: 2.25rem;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    opacity: 1;
    transition: var(--transition);
}

.carousel-control-prev {
    left: 1.25rem;
}

.carousel-control-next {
    right: 1.25rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--ep-accent);
    border-color: var(--ep-accent);
}

.carousel-indicators {
    bottom: 2rem;
    margin: 0;
}

.carousel-indicators button {
    width: 2.5rem;
    height: 3px;
    border: 0;
    border-radius: 100px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    transition: var(--transition);
}

.carousel-indicators button.active {
    width: 3.5rem;
    background: var(--ep-accent);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounceSmooth 2s ease-in-out infinite;
}

.hero-scroll i {
    display: block;
    font-size: 1.3rem;
    margin-top: 0.375rem;
}

@keyframes bounceSmooth {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =============================================
   7. EMERGENCY BAR
   ============================================= */
.emergency-bar {
    background: var(--ep-accent);
    color: var(--ep-white);
    padding: 1rem 0;
    text-align: center;
}

.emergency-bar strong {
    font-weight: 900;
    font-size: 1.125rem;
}

.emergency-bar a {
    color: var(--ep-white);
    font-weight: 700;
    text-decoration: underline;
}

/* =============================================
   8. ABOUT SECTION
   ============================================= */
.about-section {
    background: var(--ep-cream);
}

.about-img-wrap {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.about-img-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--ep-accent);
    color: var(--ep-white);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-lg);
}

.badge-num {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Features */
.about-features {
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.about-feature-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: var(--radius-md);
    background: rgba(204, 17, 0, 0.1);
    color: var(--ep-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.about-feature-item h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ep-primary);
}

.about-feature-item p {
    font-size: 0.875rem;
    color: var(--ep-gray);
    margin-bottom: 0;
}

/* =============================================
   9. STATS SECTION
   ============================================= */
.stats-section {
    background: var(--ep-primary);
    color: var(--ep-white);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--ep-accent);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ep-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.2);
}

/* =============================================
   10. SERVICES SECTION
   ============================================= */
.services-section {
    background: var(--ep-cream);
}

.service-card {
    background: var(--ep-white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--ep-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--ep-accent), var(--ep-accent-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    background: rgba(13, 27, 142, 0.07);
    color: var(--ep-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-slow);
}

.service-card:hover .service-icon {
    background: var(--ep-primary);
    color: var(--ep-accent);
}

.service-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--ep-gray);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.service-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ep-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--ep-accent-dark);
}

.service-link i {
    transition: var(--transition);
}

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

/* =============================================
   11. TEAM SECTION
   ============================================= */
.team-section {
    background: var(--ep-white);
}

.team-card {
    background: var(--ep-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--ep-border);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.team-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--ep-cream);
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.team-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--ep-primary);
    opacity: 0.3;
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 142, 0.9), transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-slow);
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 0.75rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--ep-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.team-card-body {
    padding: 1.5rem;
    text-align: center;
}

.team-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--ep-accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.team-card p {
    font-size: 0.875rem;
    color: var(--ep-gray);
    margin-bottom: 0;
}

/* =============================================
   12. GALLERY SECTION
   ============================================= */
.gallery-section,
.gallery-preview-section {
    background: var(--ep-cream);
}

.section-sm {
    padding: 4rem 0;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-column: 1 / 3;
    aspect-ratio: 16/9;
}

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

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

.gallery-item .overlay,
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 142, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-slow);
    color: var(--ep-white);
    font-size: 1.5rem;
}

.gallery-item:hover .overlay,
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* =============================================
   12.5 CLINIC CAROUSEL
   ============================================= */
.clinic-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.clinic-carousel .carousel-item img {
    object-fit: cover;
}

.clinic-carousel .carousel-indicators {
    bottom: 1rem;
}

.clinic-carousel .carousel-indicators button {
    width: 2rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: var(--transition);
}

.clinic-carousel .carousel-indicators button.active {
    background: var(--ep-accent);
    width: 2.5rem;
}

.clinic-carousel .carousel-control-prev,
.clinic-carousel .carousel-control-next {
    width: 2.5rem;
    height: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 27, 142, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: var(--transition);
}

.clinic-carousel .carousel-control-prev:hover,
.clinic-carousel .carousel-control-next:hover {
    background: var(--ep-accent);
    border-color: var(--ep-accent);
}

.clinic-carousel .carousel-control-prev {
    left: 1rem;
}

.clinic-carousel .carousel-control-next {
    right: 1rem;
}

/* =============================================
   13. CTA SECTION
   ============================================= */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--ep-white);
    text-align: center;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 142, 0.95) 0%, rgba(13, 27, 142, 0.85) 100%);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-section .section-tag {
    color: var(--ep-accent);
}

.cta-section h2 {
    color: var(--ep-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-phone {
    color: var(--ep-white);
    font-family: var(--font-heading);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.cta-phone:hover {
    color: var(--ep-accent);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* =============================================
   14. FOOTER
   ============================================= */
.footer {
    background: var(--ep-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-white);
    margin-bottom: 1rem;
}

.footer h5,
.footer-title {
    color: var(--ep-white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a::before {
    content: '›';
    margin-right: 0.375rem;
    color: var(--ep-accent);
    font-weight: 700;
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--ep-accent);
    border-color: var(--ep-accent);
    color: var(--ep-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* =============================================
   15. BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn i {
    font-size: 1rem;
}

.btn-accent {
    background: var(--ep-accent);
    color: var(--ep-white);
    border-color: var(--ep-accent);
}

.btn-accent:hover {
    background: var(--ep-accent-dark);
    border-color: var(--ep-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-white {
    background: transparent;
    color: var(--ep-white);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: var(--ep-white);
    color: var(--ep-primary);
    border-color: var(--ep-white);
}

.btn-emergency {
    background: var(--ep-accent);
    color: var(--ep-white);
    border-color: var(--ep-accent);
    animation: pulse 2s infinite;
}

.btn-emergency:hover {
    background: var(--ep-accent);
    color: var(--ep-white);
    border-color: var(--ep-accent);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(204, 17, 0, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(204, 17, 0, 0); }
}

.btn-primary-ep {
    background: var(--ep-primary);
    color: var(--ep-white);
    border-color: var(--ep-primary);
}

.btn-primary-ep:hover {
    background: var(--ep-primary-dark);
    border-color: var(--ep-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-accent {
    background: transparent;
    color: var(--ep-accent);
    border-color: var(--ep-accent);
}

.btn-outline-accent:hover {
    background: var(--ep-accent);
    color: var(--ep-white);
}

.btn-lg-ep {
    padding: 1rem 2rem;
    font-size: 0.875rem;
}

/* =============================================
   16. BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ep-accent);
    color: var(--ep-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--ep-accent-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   17. UTILITIES
   ============================================= */
.text-accent { color: var(--ep-accent); }
.text-primary { color: var(--ep-primary); }
.bg-cream { background: var(--ep-cream); }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: 3rem; }

/* =============================================
   18. DROPDOWN HOVER (DESKTOP ONLY)
   ============================================= */
#mainNav .dropdown {
    position: relative;
}

#mainNav .dropdown-menu {
    border: 1px solid var(--ep-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

#mainNav .dropdown-item:hover {
    background-color: var(--ep-cream);
    color: var(--ep-primary);
}

/* Hover effects only on desktop */
@media (min-width: 992px) {
    #mainNav .dropdown:hover > .dropdown-toggle {
        color: var(--ep-accent) !important;
    }

    #mainNav .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #mainNav .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s ease-in-out;
    }
}

/* =============================================
   19. OFFCANVAS
   ============================================= */
#navOffcanvas {
    background: var(--ep-dark);
}

#navOffcanvas .navbar-brand {
    color: var(--ep-white);
}

#navOffcanvas .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

#navOffcanvas .nav-link:hover {
    color: var(--ep-accent);
}

#navOffcanvas .collapse .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

#navOffcanvas .btn-emergency {
    background: var(--ep-accent);
    border-color: var(--ep-accent);
    color: white;
    font-weight: 700;
}

#navOffcanvas .btn-emergency:hover {
    background: var(--ep-accent);
    border-color: var(--ep-accent);
}

/* =============================================
   20. RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .section, .section-lg { padding: 4rem 0; }

    .hero-content { padding-top: 15vh; }

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

    .gallery-item:first-child {
        grid-column: 1 / 3;
    }

    .stat-divider { display: none; }

    /* Old collapse navbar-collapse hidden on mobile (now using offcanvas instead) */
    #mainNav .navbar-collapse {
        display: none !important;
    }

    #mainNav .nav-link::after {
        display: none;
    }
}

/* =============================================
   LANGUAGE SELECTOR
   ============================================= */
#mainNav .lang-selector {
    display: flex;
    gap: 0;
    margin-left: 1.5rem;
    align-items: center;
}

#mainNav .lang-btn {
    color: var(--ep-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

#mainNav .lang-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

#mainNav .lang-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

#mainNav .lang-btn:hover,
#mainNav .lang-btn.active {
    color: var(--ep-accent);
    border-color: var(--ep-accent);
    background: rgba(204, 17, 0, 0.05);
}

/* Language selector in offcanvas */
.offcanvas-body .lang-selector {
    margin-left: 0;
    gap: 0;
    display: flex;
    flex-direction: row;
}

.offcanvas-body .lang-btn {
    color: #ffffff;
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.12);
    padding: 0.5rem 0.875rem;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.offcanvas-body .lang-btn img {
    height: 24px;
    width: auto;
    display: block;
}

.offcanvas-body .lang-btn:hover,
.offcanvas-body .lang-btn.active {
    background: rgba(204, 17, 0, 0.15);
}


@media (max-width: 767.98px) {
    .container { padding: 0 1rem; }

    #mainNav .container {
        padding-left: 0 !important;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .carousel-control-prev,
    .carousel-control-next {
        top: 60%;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        min-height: 90vh;
        padding-top: 10vh;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: auto;
        padding-bottom: 1rem;
    }

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

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

    .gallery-item:first-child {
        grid-column: 1;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }

    #mainNav .lang-selector {
        margin-left: 0;
        margin-top: 1rem;
    }

    .back-to-top.banner-offset { bottom: calc(20px + var(--cookie-banner-h, 90px)); }
}

@media (min-width: 768px) {
    .back-to-top.banner-offset { bottom: calc(30px + var(--cookie-banner-h, 72px)); }
}

/* =============================================
   21. COOKIE CONSENT BANNER
   ============================================= */
.btn-outline-ep {
    background: transparent;
    border: 2px solid var(--ep-border);
    color: var(--ep-dark);
}

.btn-outline-ep:hover {
    border-color: var(--ep-primary);
    color: var(--ep-primary);
}

.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 1rem;
    transform: translateY(110%);
    opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, visibility 0s linear 0.4s;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1; visibility: visible;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease, visibility 0s linear 0s;
}

.cookie-banner__card {
    max-width: 860px; margin: 0 auto;
    background: var(--ep-white);
    border-radius: 16px;
    box-shadow: 0 -2px 40px hsla(0,0%,0%,0.14), 0 8px 32px hsla(0,0%,0%,0.10);
    padding: 1.5rem 2rem;
    border-top: 4px solid var(--ep-primary);
}

.cookie-banner__header {
    display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
}

.cookie-banner__icon { font-size: 1.3rem; color: var(--ep-primary); }

.cookie-banner__title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ep-dark); }

.cookie-banner__text { font-size: 0.875rem; color: var(--ep-gray); margin-bottom: 1rem; line-height: 1.55; }

.cookie-banner__categories { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }

.cookie-cat {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--ep-cream); border-radius: 8px; padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.cookie-cat__icon { color: var(--ep-primary); width: 16px; flex-shrink: 0; }

.cookie-cat > div { flex: 1; }

.cookie-cat > div strong { color: var(--ep-dark); }

.cookie-cat > div span { color: var(--ep-gray); }

.cookie-cat__badge {
    font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px;
    background: hsla(var(--ep-primary-hsl, 220,80%,40%), 0.12);
    color: var(--ep-primary); white-space: nowrap;
}

.cookie-cat__badge--optional {
    background: hsla(0,0%,60%,0.12); color: var(--ep-gray);
}

.cookie-banner__actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}

.cookie-banner__links { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; }

.cookie-banner__link { color: var(--ep-gray); text-decoration: underline; }

.cookie-banner__link:hover { color: var(--ep-primary); }

.cookie-banner__btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cookie-banner__btn-secondary { font-size: 0.82rem; padding: 0.45rem 1.1rem; }

.cookie-banner__btn-primary { font-size: 0.82rem; padding: 0.45rem 1.25rem; }

/* Map placeholder */
.map-consent-placeholder {
    width: 100%; height: 100%; min-height: 280px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 1rem;
    background: var(--ep-cream); border: 2px dashed var(--ep-border);
    border-radius: var(--radius-md); text-align: center; padding: 2rem;
}

.map-consent-placeholder__icon { font-size: 2.5rem; color: var(--ep-gray); opacity: 0.5; }

.map-consent-placeholder p { margin: 0; font-size: 0.9rem; color: var(--ep-gray); }

/* Bootstrap .ratio wrapper fix */
.ratio .map-consent-wrapper { position: absolute; inset: 0; }

.ratio .map-consent-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.map-consent-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 767.98px) {
    .cookie-banner__card { padding: 1.25rem; }
    .cookie-banner__actions { flex-direction: column; align-items: flex-start; }
    .cookie-banner__btns { width: 100%; }
    .cookie-banner__btn-secondary,
    .cookie-banner__btn-primary { flex: 1; text-align: center; justify-content: center; }
    .back-to-top.banner-offset { bottom: calc(20px + var(--cookie-banner-h, 240px)); }
}

@media (min-width: 768px) {
    .back-to-top.banner-offset { bottom: calc(30px + var(--cookie-banner-h, 200px)); }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0,0,0,0.3);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}
