/* ============================================
   SV DANCE STUDIOS - CUSTOM CSS
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f4a261;
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #1d3557;
    --transition: all 0.3s ease;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.15);
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c1121f;
    border-color: #c1121f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* === SECTION STYLES === */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 30px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-badge-light {
    background: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-divider-light {
    background: rgba(255, 255, 255, 0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 20px auto 0;
}

/* === NAVBAR === */
.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--secondary-color) !important;
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 10px 18px !important;
    margin: 0 2px;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-social {
    display: flex;
    gap: 10px;
}

.navbar-social a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: var(--transition);
}

.navbar-social a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === NAVBAR BRAND === */
.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.7) 0%, rgba(13, 27, 42, 0.75) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* === CHI SIAMO === */
.about-image {
    position: relative;
}

.about-image img {
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.about-content .lead {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about-stats .stat-item {
    text-align: center;
}

.about-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.about-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === SEDI ACCORDION === */
.accordion-sedi .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-sedi .accordion-button {
    padding: 25px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    background: #fff;
    color: var(--secondary-color);
    border-radius: 15px !important;
}

.accordion-sedi .accordion-button:not(.collapsed) {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: none;
}

.accordion-sedi .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-sedi .accordion-button::after {
    background-size: 1.2rem;
}

.accordion-sedi .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-sedi .sede-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.accordion-sedi .sede-partner {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: auto;
    margin-right: 20px;
    font-weight: 400;
}

.accordion-sedi .accordion-body {
    padding: 30px;
    background: #fff;
}

.table-corsi {
    font-size: 0.9rem;
}

.table-corsi thead {
    background: var(--bg-light);
}

.table-corsi th {
    font-weight: 600;
    color: var(--secondary-color);
    border: none;
    padding: 12px 15px;
}

.table-corsi td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: #eee;
}

.referenti-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.referenti-list li:last-child {
    border-bottom: none;
}

.referenti-list a {
    color: var(--secondary-color);
    font-weight: 500;
}

.referenti-list a:hover {
    color: var(--primary-color);
}

/* === CORSI === */
.corso-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.corso-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.corso-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.corso-icon i {
    font-size: 2rem;
    color: #fff;
}

.corso-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.corso-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.corso-levels {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* === EVENTI === */
.evento-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    text-align: center;
}

.evento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.evento-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.evento-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.evento-card h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.evento-partner {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.evento-schedule {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.evento-orari {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.evento-orari li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.evento-orari li:last-child {
    border-bottom: none;
}

.evento-orari i {
    color: var(--primary-color);
}

/* === SHOP === */
.shop-product-image {
    position: relative;
}

.shop-product-image img {
    box-shadow: var(--shadow-lg);
}

.shop-product-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.shop-product-content {
    padding-left: 30px;
}

.product-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.shop-product-content h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-tagline {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.product-quote {
    background: var(--bg-light);
    padding: 20px 25px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
    font-style: italic;
    color: var(--secondary-color);
}

.product-quote i {
    color: var(--primary-color);
    margin-right: 10px;
    opacity: 0.5;
}

.product-quote footer {
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-dark);
}

.product-features i {
    color: var(--primary-color);
}

/* === PRODUCT GALLERY === */
.product-gallery .gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.product-gallery .gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.product-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

#galleryModal .modal-dialog {
    max-width: 90%;
}

#galleryModal .modal-content {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
}

#galleryModal .modal-header {
    border-bottom: none;
    padding: 15px 20px;
}

#galleryModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#galleryModal .btn-close:hover {
    opacity: 1;
}

#galleryModal .modal-body {
    padding: 20px;
}

#galleryModalImg {
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
}

/* === CTA SECTION === */
.cta-section {
    background: var(--primary-color);
    padding: 60px 0;
    color: #fff;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section .btn-light {
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 15px 35px;
}

.cta-section .btn-light:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* === CONTATTI === */
.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.contact-card h5 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.contact-card a {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

/* === WHATSAPP BUTTON === */
.contact-icon-whatsapp {
    background: #25D366;
}

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* === CONTACT FORM === */
.contact-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.contact-form-wrapper .form-control,
.contact-form-wrapper .form-select {
    padding: 12px 18px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form-wrapper .form-control:focus,
.contact-form-wrapper .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.15);
}

.contact-form-wrapper .form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.contact-form-wrapper .form-check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-wrapper .form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form-wrapper .btn-primary {
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

/* === FOOTER === */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
}

.footer h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 8px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 25px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--primary-color);
}

.credits {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .navbar-collapse {
        background: var(--secondary-color);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
    }

    .brand-text {
        font-size: 0.85rem;
    }

    .navbar-social {
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-image::before {
        display: none;
    }

    .accordion-sedi .sede-partner {
        display: none;
    }

    .shop-product-image::before {
        display: none;
    }

    .shop-product-content {
        padding-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        background-image: url('../img/svdancestudios-hero-mobile.jpg') !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .accordion-sedi .accordion-button {
        padding: 20px;
    }

    .accordion-sedi .sede-title {
        font-size: 1.1rem;
    }
}
