/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fontes */
@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik/Rubik-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --font-title: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --primary-color: #ff3131;
    --primary-color-hover: #e62828;
    --text-color: #2d2b1e;
    --text-color-light: #4a4a4a;
    --background-color: #fafafa;
    --background-color-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Modo Alto Contraste */
body.high-contrast {
    --primary-color: #ffff00;
    --primary-color-hover: #e6e600;
    --text-color: #ffffff;
    --text-color-light: #ffffff;
    --background-color: #000000;
    --background-color-light: #1a1a1a;
    --border-color: #ffffff;
    --shadow-color: rgba(255, 255, 255, 0.3);
}

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

.no-decoration {
    text-decoration: none;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    align-items: stretch;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    order: 1;
    padding: 4rem 2rem 2rem 2rem;
    max-width: 100%;
    margin: 0;
    overflow-y: auto;
    height: 100vh;
    background-color: var(--background-color);
    position: relative;
    z-index: 2;
    scroll-behavior: smooth;
}

.hero-image {
    width: 100%;
    height: 100vh;
    order: 2;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.hero-title {
    position: absolute;
    top: 4rem;
    left: 4rem;
    z-index: 2;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    background: none;
}

.hero-text {
    overflow-y: auto;
    height: 100%;
    padding-right: 1rem;
    background-color: transparent;
    border-radius: 12px;
    padding: 2rem;
    margin: 0 1rem;
    margin-bottom: 2rem;
}

.hero-text::-webkit-scrollbar {
    width: 8px;
}

.hero-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.hero-text::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.hero-text::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color-hover);
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.event-number {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
}

.event-title {
    font-size: 2rem;
    letter-spacing: 2px;
    color: #2d2b1e;
}

.event-subtitle {
    font-size: 2.5rem;
    color: #2d2b1e;
    letter-spacing: 3px;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2d2b1e;
    font-weight: 400;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-theme {
    padding: 1.5rem;
    line-height: 1.6;
}

.teachers-title, .schedule-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: #2d2b1e;
    margin: 2.5rem 0 1.5rem 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.teachers-title::after, .schedule-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.teachers-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.teachers-list li {
    color: #2d2b1e;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.schedule {
    margin-top: 2rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
}

.accordion-header:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.accordion-header[aria-expanded="true"] {
    background-color: var(--background-color-light);
    border-radius: 8px 8px 0 0;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 1rem;
    background-color: var(--background-color-light);
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
}

.accordion-content:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content li {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.accordion-content li:focus-visible {
    background-color: var(--background-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Modo Alto Contraste */
body.high-contrast .accordion-header:focus-visible,
body.high-contrast .accordion-content:focus-visible,
body.high-contrast .accordion-content li:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.event-subheading {
    font-family: var(--font-title);
    font-size: 1.75rem;
    color: #2d2b1e;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.event-subheading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.event-theme p {
    margin: 0 0 1.5rem 0;
    color: var(--text-color-light);
    font-size: 1.1rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.6;
}

.location-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location, .event-info {
    background-color: var(--background-color-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.location h2 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-info p {
    margin: 0.5rem 0;
    color: var(--text-color-light);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: flex-start;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
}

.btn-primary i {
    font-size: 1.2rem;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.hero-title .event-number {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    display: block;
}

.hero-title .event-title {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    display: block;
}

.hero-title .event-subtitle {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    display: block;
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        padding: 0;
        gap: 0;
        overflow: visible;
        position: relative;
        scroll-behavior: auto;
    }

    .hero-content {
        order: 2;
        height: auto;
        min-height: auto;
        position: relative;
        z-index: 1;
        background-color: var(--background-color);
        padding: 2rem 1.5rem;
        overflow: visible;
        transform: none;
        transition: none;
        margin-top: 0;
        scroll-behavior: auto;
    }

    .hero-text {
        overflow: visible;
        height: auto;
        padding: 1rem;
        margin: 0;
        background-color: transparent;
        border-radius: 0;
        scroll-behavior: auto;
    }

    .hero-image {
        order: 1;
        height: 60vh;
        position: relative;
        z-index: 1;
        margin-bottom: 0;
        background-attachment: scroll;
    }

    .hero-title {
        position: absolute;
        top: 2rem;
        left: 2rem;
        text-align: left;
        padding: 0;
        background: none;
        width: auto;
        z-index: 2;
    }

    .hero-title .event-number {
        font-size: 2.5rem;
    }

    .hero-title .event-title {
        font-size: 1.75rem;
    }

    .hero-title .event-subtitle {
        font-size: 2rem;
    }

    .event-number {
        font-size: 2.5rem;
    }

    .event-title {
        font-size: 1.75rem;
    }

    .event-subtitle {
        font-size: 2rem;
    }

    .location h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        justify-content: center;
    }

    .event-subheading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .event-theme p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .teachers-title, .schedule-title {
        font-size: 1.2rem;
        margin: 1.5rem 0 1rem 0;
    }

    .teachers-carousel {
        margin: 1rem 0;
    }

    .carousel-slide h4 {
        font-size: 1.1rem;
    }

    .carousel-slide p {
        font-size: 0.95rem;
    }

    .carousel-indicators {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .indicator {
        width: 20px;
    }

    .indicator.active {
        width: 30px;
    }

    .accordion-header {
        padding: 0.75rem;
        font-size: 1.1rem;
    }

    .accordion-content ul {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }

    .accordion-content li {
        font-size: 0.95rem;
    }

    .location-map {
        height: 250px;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 50vh;
    }

    .hero-title {
        top: 1.5rem;
        left: 1.5rem;
    }

    .hero-title .event-number {
        font-size: 2rem;
    }

    .hero-title .event-title {
        font-size: 1.5rem;
    }

    .hero-title .event-subtitle {
        font-size: 1.75rem;
    }

    .hero-text {
        padding: 0.75rem;
    }

    .event-theme {
        padding: 0.75rem;
    }

    .event-subheading {
        font-size: 1.3rem;
    }

    .teachers-title, .schedule-title {
        font-size: 1.1rem;
    }

    .carousel-slide h4 {
        font-size: 1rem;
    }

    .carousel-slide p {
        font-size: 0.9rem;
    }

    .accordion-header {
        font-size: 1rem;
    }

    .accordion-content li {
        font-size: 0.9rem;
    }

    .location-map {
        height: 200px;
    }
}

.teachers-carousel {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.carousel-slide h4 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.carousel-slide p {
    color: var(--text-color-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 30px;
    height: 4px;
    background-color: var(--border-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.indicator.active {
    width: 50px;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .indicator {
        width: 25px;
    }

    .indicator.active {
        width: 40px;
    }

    .carousel-slide h4 {
        font-size: 1.2rem;
    }

    .carousel-slide p {
        font-size: 0.95rem;
    }
}

/* Botão de Alto Contraste */
.contrast-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
}

.contrast-toggle:hover {
    background-color: var(--primary-color-hover);
    transform: scale(1.1);
}

body.high-contrast .contrast-toggle {
    background-color: var(--primary-color);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .contrast-toggle {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}
