/* Modern & Premium Design for Workshop Visite Morro */

:root {
    /* User Provided Palette */
    --primary: #159599;
    /* Strong Teal */
    --secondary: #3BC1B9;
    /* Lighter Turquoise */
    --accent: #F48521;
    /* Bright Orange */
    --sand: #F34D18;
    /* Red Orange - used for highlights */

    --dark: #1d2c33;
    --text-main: #264653;
    --text-light: #5f757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-overlay: linear-gradient(rgba(14, 61, 77, 0.7), rgba(42, 157, 143, 0.6));

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px -5px rgba(14, 61, 77, 0.15);
    --shadow-lg: 0 20px 40px -5px rgba(14, 61, 77, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Mobile Navigation Fix --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* --- Buttons --- */
.cta-button,
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover,
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 111, 81, 0.4);
    background: #d65a3b;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    /* Reduced padding for compact single line */
    transition: var(--transition);
    height: 70px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img {
    height: 50px;
    /* Slightly smaller to fit */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

/* --- Hero Section --- */
.hero {
    margin-top: 70px;
    /* Offset for fixed navbar */
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    background: none;
    padding: 0;
    display: block;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 85vh;
    /* Prevent it from being too tall on very wide screens */
}

.hero-logo-overlay {
    position: absolute;
    top: 50%;
    left: 33%;
    /* Left, almost centering */
    transform: translate(-50%, -50%);
    width: 350px;
    /* Adjust size as needed */
    max-width: 80%;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .hero-logo-overlay {
        left: 50%;
        width: 250px;
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--sand);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero .divider {
    height: 4px;
    width: 80px;
    background: var(--accent);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.hero .description {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .dates {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Sections Common --- */
section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4rem;
}

/* --- Sobre --- */
.sobre {
    background: var(--white);
}

.sobre-grid {
    display: grid;
    /* Default to 4 columns on larger screens to satisfy "1 ao lado do outro" (all in 1 line) */
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.sobre-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sobre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.sobre-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

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

.sobre-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    background: rgba(42, 157, 143, 0.1);
    padding: 20px;
    border-radius: 50%;
    transition: var(--transition);
}

.sobre-card:hover i {
    background: var(--secondary);
    color: var(--white);
}

.sobre-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.sobre-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Programação --- */
.programacao {
    background: var(--bg-light);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(42, 157, 143, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.25rem;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.timeline-content h5 {
    color: var(--secondary);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.activity-group ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.activity-group ul li:last-child {
    border-bottom: none;
}

/* --- Participantes --- */
.participantes {
    background: var(--white);
}

.participantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.participante-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #eee;
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.participante-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.participante-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
}

.participante-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* --- Info Banner --- */
.info-banner {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, #0d2e3b 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.info-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('assets/pattern.svg') no-repeat right center;
    /* Optional: if you have a pattern */
    opacity: 0.1;
    pointer-events: none;
}

.info-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    text-align: left;
    /* Changed to left align for icon + text layout */
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.info-icon {
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sand);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--sand);
    color: var(--primary);
    transform: scale(1.1);
}

.info-text h3 {
    color: var(--sand);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text p {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--white);
}

/* --- Contact --- */
.contato {
    background: #fdfdfd;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    background: var(--bg-light);
    border: 1px solid #e1e1e1;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
}

.contact-form .cta-button {
    width: 100%;
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    /* Allows wrapping on smaller screens, but stays on 1 line if possible */
}

.footer h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer h4 {
    color: var(--sand);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- Sponsors Section --- */
.sponsors {
    padding: 60px 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sponsors h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.sponsors h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    /* Force single line */
    gap: 2rem;
    overflow-x: auto;
    /* Add scroll for mobile if needed */
    padding-bottom: 10px;
    /* Space for scrollbar */
    -webkit-overflow-scrolling: touch;
}

.sponsor-logo {
    height: 100px;
    /* Increased height for images */
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-width: 150px;
    /* Slightly reduced */
    flex-shrink: 0;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
}

.sponsor-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: 100%;
        text-align: left;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--primary);
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: 0.3s;
    }

    .nav-menu.active {
        right: 0;
    }
}

/* Explicit responsive rules for .sobre-grid */
@media (max-width: 1100px) {
    .sobre-grid {
        /* Force 2 columns (2 up, 2 down) on medium screens */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .sobre-grid {
        /* Stack vertically on very small mobile screens */
        grid-template-columns: 1fr;
    }
}

/* --- Security Badge --- */
.security-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    transition: var(--transition);
    margin-top: 1rem;
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary);
}

.security-badge i {
    font-size: 24px;
    color: var(--secondary);
}

.security-badge div {
    display: flex;
    flex-direction: column;
}

.badge-title {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.badge-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}