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

:root {
    --primary-color: #E1306C;
    --secondary-color: #4267B2;
    --accent-color: #FD1D1D;
    --text-dark: #262626;
    --text-light: #8e8e8e;
    --border-color: #dbdbdb;
    --bg-light: #fafafa;
    --white: #ffffff;
    --gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Segurança global: imagens nunca transbordam o container */
img {
    max-width: 100%;
}

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

/* ─── Header ─────────────────────────────────────────────────────────────── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover { color: var(--primary-color); }

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

nav a:hover::after { width: 100%; }

/* ─── Dropdown "Sobre a Artista" ─────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover { color: var(--primary-color); }

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after { width: 100%; }

.nav-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.25s;
    display: inline-block;
    line-height: 1;
    opacity: 0.55;
}

.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    min-width: 190px;
    padding: 8px 0;
    z-index: 2000;
    white-space: nowrap;
}

.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li { list-style: none; }

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu a:hover {
    background: #fafafa;
    color: var(--primary-color);
}

/* ─── Language Selector ──────────────────────────────────────────────────── */
.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn .flag { font-size: 24px; display: block; }

.lang-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.lang-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(225,48,108,0.1), rgba(188,24,136,0.1));
    box-shadow: 0 2px 8px rgba(225,48,108,0.2);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* ─── Profile Section ────────────────────────────────────────────────────── */
.profile-section {
    background: var(--white);
    padding: 60px 0;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    gap: 60px;
    align-items: center;
}

.profile-image-wrapper { position: relative; flex-shrink: 0; }

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--gradient);
    padding: 4px;
    display: block;
}

.profile-logo-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-logo-overlay img { width: 100%; height: 100%; object-fit: contain; }

.profile-info h2 { font-size: 32px; margin-bottom: 15px; font-weight: 300; }

.bio { font-style: italic; color: var(--text-light); margin-bottom: 20px; font-size: 18px; }

.stats { display: flex; gap: 40px; margin-bottom: 20px; }

.stat { display: flex; flex-direction: column; align-items: center; }
.stat .number { font-size: 24px; font-weight: 700; }
.stat .label  { color: var(--text-light); font-size: 14px; }

.social-links { display: flex; gap: 15px; }

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--white);
    font-size: 20px;
    transition: transform 0.3s;
}
.social-links a:hover { transform: scale(1.1); }

/* ─── Sections ───────────────────────────────────────────────────────────── */
section { padding: 60px 0; }

section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
}

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

.sobre-content { max-width: 800px; margin: 0 auto; text-align: center; }
.sobre-content p { font-size: 18px; margin-bottom: 20px; line-height: 1.8; }

.influencias { margin-top: 40px; }
.influencias h3 { font-size: 18px; margin-bottom: 18px; color: var(--text-light); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }

.influencias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.influencia {
    padding: 7px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: border-color 0.2s, color 0.2s;
}
.influencia:hover { border-color: var(--primary-color); }
.influencia h4 { font-size: 14px; color: var(--text-dark); font-weight: 400; margin: 0; }
.influencia p  { display: none; }

/* ─── As 4 Fases ─────────────────────────────────────────────────────────── */
.fases-section {
    background: #F7F4EF;
    padding: 80px 0;
}
.fases-section .container > h2 {
    text-align: center;
    margin-bottom: 12px;
}
.fases-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 60px;
    font-style: italic;
}
.fases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 900px) {
    .fases-grid { grid-template-columns: 1fr; }
}
.fase-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--fase-color, #E1306C);
}
.fase-card-header {
    padding: 32px 32px 0;
}
.fase-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fase-color, #E1306C);
    margin-bottom: 14px;
}
.fase-numero {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--fase-color, #E1306C);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: Georgia, serif;
    font-style: italic;
}
.fase-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-family: Georgia, "Times New Roman", serif;
}
.fase-title em {
    font-style: italic;
    color: var(--fase-color, #E1306C);
}
.fase-subtitle {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
}
.fase-body {
    padding: 0 32px 24px;
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
    flex: 1;
}
.fase-preamble {
    margin: 0 32px 0;
    background: var(--fase-color, #E1306C);
    border-radius: 4px;
    padding: 18px 22px;
    color: #fff;
}
.fase-preamble-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 8px;
}
.fase-preamble p {
    font-size: 13.5px;
    line-height: 1.65;
    font-weight: 300;
}

/* expand/collapse */
.fase-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 32px;
    transition: max-height 0.45s ease, padding 0.3s ease;
}
.fase-body.expanded {
    max-height: 900px;
    padding: 20px 32px 24px;
}
.fase-expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 32px 28px;
    background: none;
    border: 1px solid var(--fase-color, #E1306C);
    color: var(--fase-color, #E1306C);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    width: fit-content;
}
.fase-expand-btn:hover {
    background: var(--fase-color, #E1306C);
    color: #fff;
}
.fase-expand-btn svg {
    width: 14px; height: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.fase-expand-btn.open svg { transform: rotate(180deg); }
/* Phase colour variables */
.fase-1 { --fase-color: #C8963E; }
.fase-2 { --fase-color: #2196C4; }
.fase-3 { --fase-color: #5B3FA6; }
.fase-4 { --fase-color: #1A8A7A; }

/* ─── Gallery ────────────────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s, transform 0.3s;
}

.gallery-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
    /* Render at full crisp quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.4s ease;
    display: block;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 24px 20px 18px;
    transform: translateY(100%);
    transition: transform 0.3s;
    color: var(--white);
}

.gallery-item:hover .overlay { transform: translateY(0); }

.overlay h3 { font-size: 17px; margin-bottom: 4px; }
.overlay p  { font-size: 13px; opacity: 0.85; }

/* ─── Biografia ──────────────────────────────────────────────────────────── */
.biografia-section {
    background: var(--bg-light);
    overflow: hidden; /* segurança contra overflow de filhos */
}

.biografia-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.biografia-imagem {
    flex: 0 0 280px;
    max-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    background: #fafafa;
    align-self: flex-start;
}

.biografia-imagem img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.biografia-texto {
    flex: 1 1 300px;
    min-width: 0; /* permite flex shrink em conteúdo longo */
}

.biografia-texto p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 18px;
    text-align: justify;
}

.biografia-texto p:first-child {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.biografia-assinatura {
    max-width: 560px;
    margin: 50px auto 0;
    padding: 24px 28px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    display: flex;
    gap: 20px;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.assinatura-foto {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient);
    padding: 3px;
}

.assinatura-foto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--white);
}

.assinatura-info {
    flex: 1;
}

.assinatura-nome {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.assinatura-cargo {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 4px;
    font-style: italic;
}

.assinatura-galeria {
    font-size: 13px;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .biografia-content {
        flex-direction: column;
        gap: 30px;
    }

    .biografia-imagem {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .biografia-assinatura {
        margin-top: 40px;
        padding: 20px 22px;
    }
}

@media (max-width: 480px) {
    .biografia-texto p { font-size: 15px; line-height: 1.75; }
    .biografia-texto p:first-child { font-size: 16px; }

    .biografia-assinatura {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--primary-color);
        gap: 14px;
    }
    .assinatura-foto { width: 70px; height: 70px; }
}

/* ─── Mais Obras (Carrossel) ─────────────────────────────────────────────── */
.mais-obras-section {
    background: var(--white);
    overflow: hidden; /* segurança contra overflow do carrossel */
}

.mais-obras-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    font-style: italic;
    margin-top: -25px;
    margin-bottom: 40px;
}

.carousel {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    width: 100%;
}

.carousel-viewport {
    flex: 1 1 auto;
    min-width: 0; /* crítico: permite ao flex item encolher */
    overflow: hidden;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 14px;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.carousel-slide {
    flex: 0 0 auto;
    width: calc((100% - 32px) / 3); /* 3 slides visíveis em desktop */
    max-width: calc((100% - 32px) / 3);
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88), transparent);
    padding: 26px 18px 14px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-caption {
    transform: translateY(0);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(225,48,108,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    z-index: 2;
}

.carousel-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(225,48,108,0.5);
}

.carousel-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.25);
}

/* Responsive carousel */
@media (max-width: 900px) {
    .carousel-slide {
        width: calc((100% - 16px) / 2); /* 2 por vista */
        max-width: calc((100% - 16px) / 2);
        height: 280px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        width: 100%; /* 1 por vista */
        max-width: 100%;
        height: 260px;
    }
    .carousel-track {
        gap: 12px;
    }
    .mais-obras-subtitle {
        margin-top: -20px;
        margin-bottom: 30px;
        font-size: 14px;
    }
}

/* ─── Timeline ───────────────────────────────────────────────────────────── */
.timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    position: relative;
    align-items: flex-start;
}

/* Dot on the line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 74px;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--bg-light);
    z-index: 1;
    flex-shrink: 0;
}

.timeline-year {
    flex-shrink: 0;
    width: 68px;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    text-align: right;
    padding-top: 10px;
    padding-right: 0;
    letter-spacing: -0.02em;
}

.timeline-entries {
    flex: 1;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each individual exhibition entry */
.expo-entry {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-left: 3px solid transparent;
    transition: transform 0.25s, box-shadow 0.25s;
}

.expo-entry:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

/* Highlighted entry (Porto a Cores) */
.expo-entry.expo-highlight {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 80%, rgba(225,48,108,0.04));
}

/* Type badge */
.expo-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 7px;
}

.expo-individual     { background: rgba(225,48,108,0.12); color: #c0255e; }
.expo-coletiva       { background: rgba(66,103,178,0.12); color: #3557a0; }
.expo-coletiva-int   { background: rgba(253,29,29,0.10);  color: #b02020; }

.expo-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.expo-local {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.expo-local i {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 11px;
}

.expo-stats {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(225,48,108,0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ─── Mídia ──────────────────────────────────────────────────────────────── */
.midia-section { background: var(--white); }

.midia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.midia-item {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.midia-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.midia-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.midia-item h3 { font-size: 18px; margin-bottom: 10px; }
.midia-item p  { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ─── Contato ────────────────────────────────────────────────────────────── */
.contato-content { max-width: 600px; margin: 0 auto; text-align: center; }
.contato-info { margin-bottom: 40px; }

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
}

.info-item i { color: var(--primary-color); font-size: 24px; }
.info-item a { color: var(--text-dark); text-decoration: none; transition: color 0.3s; }
.info-item a:hover { color: var(--primary-color); }

.social-large { display: flex; flex-direction: column; gap: 20px; }

.social-large a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    transition: transform 0.3s;
}
.social-large a:hover { transform: scale(1.05); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer { background: var(--text-dark); color: var(--white); text-align: center; padding: 30px 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL — imagem à esquerda, texto à direita
   ═══════════════════════════════════════════════════════════════════════════ */
.modal {
    display: none; /* hidden by default, shown via .active */
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active { display: flex; }

/* Close button */
.modal-close {
    position: fixed;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 44px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2100;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    background: none;
    border: none;
}
.modal-close:hover { color: var(--primary-color); transform: scale(1.1); }

/* Two-column container */
.modal-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1100px;
    width: 100%;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    margin: auto;
}

/* ── Left: image ── */
.modal-image-side {
    position: relative;
    flex: 0 0 58%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    /* full crisp quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.modal-img:hover { transform: scale(1.02); }

.zoom-tip {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

/* ── Right: text ── */
.modal-info-side {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-info-side h3 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 16px;
}

.modal-info-side h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.modal-subtitle {
    font-style: italic;
    color: #aaa;
    font-size: 15px;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.modal-text {
    color: #ddd;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ZOOM OVERLAY — fullscreen zoom/pan
   ═══════════════════════════════════════════════════════════════════════════ */
.zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.zoom-overlay.active { display: flex; }

.zoom-overlay-close {
    position: fixed;
    top: 18px;
    right: 28px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.zoom-overlay-close:hover { background: var(--primary-color); transform: scale(1.1); }

.zoom-overlay-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 3100;
    white-space: nowrap;
}

.zoom-scroll-area {
    width: 100%;
    height: 100vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.zoom-img {
    max-width: none;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
    /* Full quality rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
    /* Start at a good viewing size */
    width: auto;
    height: auto;
    max-height: 92vh;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Modal stacks vertically on tablets */
    .modal-container {
        flex-direction: column;
        max-width: 600px;
    }

    .modal-image-side {
        flex: none;
        min-height: 280px;
        max-height: 50vh;
    }

    .modal-img { max-height: 50vh; }

    .modal-info-side {
        max-height: none;
        padding: 28px 24px;
    }

    .modal-info-side h3 { font-size: 22px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-color);
        padding: 20px;
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 15px; }

    /* dropdown mobile — inline */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        margin: 6px 0 0 12px;
        padding: 4px 0;
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a { padding: 7px 14px; font-size: 14px; }

    .language-selector { order: -1; }

    .profile-header { flex-direction: column; text-align: center; }
    .profile-image img { width: 150px; height: 150px; }
    .profile-logo-overlay { width: 50px; height: 50px; bottom: 3px; right: 3px; padding: 6px; }
    .stats { justify-content: center; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .gallery-item { min-height: 200px; }

    .timeline::before { left: 54px; }
    .timeline-item::before { left: 48px; }
    .timeline-year { width: 46px; font-size: 14px; padding-top: 11px; }
    .timeline-entries { margin-left: 22px; }
    .expo-entry { padding: 11px 14px; }

    .modal { padding: 10px; }
    .modal-close { top: 10px; right: 16px; font-size: 36px; }

    .zoom-overlay-hint { font-size: 11px; padding: 6px 14px; bottom: 10px; }
}

@media (max-width: 480px) {
    section h2 { font-size: 24px; }
    .profile-info h2 { font-size: 24px; }
    .bio { font-size: 16px; }
    .stat .number { font-size: 20px; }
    .profile-logo-overlay { width: 45px; height: 45px; }
    .lang-btn .flag { font-size: 20px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item { min-height: 160px; }

    .modal-info-side h3 { font-size: 18px; }
    .modal-text { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAINEL ADMIN (visível apenas com ?admin=talita2025)
   ═══════════════════════════════════════════════════════════════════════════ */
#admin-panel {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 260px;
    background: #1a1a2e;
    border: 1px solid rgba(225,48,108,0.4);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(225,48,108,0.15);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    animation: apSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

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

.ap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #E1306C, #bc1888);
}

.ap-logo  { font-size: 20px; }
.ap-title { color: #fff; font-weight: 700; font-size: 15px; flex: 1; letter-spacing: 0.03em; }

.ap-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ap-close:hover { background: rgba(255,255,255,0.4); }

.ap-body { padding: 20px 20px 18px; }

.ap-stat-box {
    text-align: center;
    background: rgba(225,48,108,0.08);
    border: 1px solid rgba(225,48,108,0.2);
    border-radius: 12px;
    padding: 16px 10px;
    margin-bottom: 16px;
}

.ap-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #f09433, #E1306C, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.ap-label {
    display: block;
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ap-meta {
    color: #888;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 14px;
}
.ap-meta i { color: #E1306C; width: 16px; }

.ap-tip {
    color: #555;
    font-size: 11px;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
}
.ap-tip i { color: #E1306C; }
.ap-tip code {
    background: rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    color: #E1306C;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL — Pedido de Informações (RGPD)
   ═══════════════════════════════════════════════════════════════════════════ */
.info-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0,0,0,0.75);
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.info-modal.active { display: flex; }

.info-modal-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
    overflow: hidden;
    margin: auto;
    animation: infoModalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes infoModalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.info-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #444;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 3;
}
.info-modal-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.info-modal-header {
    padding: 32px 36px 20px;
    background: var(--gradient);
    color: #fff;
}
.info-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}
.info-modal-subtitle {
    font-size: 14px;
    opacity: 0.92;
    line-height: 1.5;
    margin: 0;
}

/* Formulário */
.info-form {
    padding: 26px 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Garantir que o atributo hidden esconde mesmo, apesar do display:flex acima */
.info-form[hidden],
.info-thanks[hidden] {
    display: none !important;
}

.info-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.info-form-field input,
.info-form-field select,
.info-form-field textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 11px 13px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.info-form-field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.info-form-field input:focus,
.info-form-field select:focus,
.info-form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(225,48,108,0.15);
}

.info-form-field input:invalid:not(:placeholder-shown),
.info-form-field select:invalid:not(:focus) {
    /* suppress default red halo */
    box-shadow: none;
}

/* Consentimentos */
.info-consents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 4px;
}

.info-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.info-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1.5px solid #bbb;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.info-consent input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.info-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.info-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.info-consent-text { flex: 1; }

.info-privacy-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
}
.info-privacy-toggle:hover { color: #bc1888; }

/* Painel da política */
.info-privacy-panel {
    background: #f6f6f9;
    border: 1px solid #e4e4ef;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #444;
    margin-top: 4px;
}
.info-privacy-panel h4 {
    font-size: 13px;
    margin: 0 0 8px;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.info-privacy-panel p {
    margin: 0 0 6px;
}
.info-privacy-panel p:last-child { margin-bottom: 0; }

/* Erro de validação */
.info-form-error {
    background: #ffe8ec;
    border: 1px solid #f5b5c2;
    color: #a5162e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* Botão submit */
.info-submit-btn {
    margin-top: 4px;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 20px rgba(225,48,108,0.28);
}
.info-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(225,48,108,0.35);
}
.info-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.info-required-note {
    font-size: 11.5px;
    color: var(--text-light);
    text-align: center;
    margin: 4px 0 0;
}

/* Agradecimento */
.info-thanks {
    padding: 48px 36px 44px;
    text-align: center;
}
.info-thanks-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 14px;
    animation: infoThanksPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes infoThanksPop {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1);   }
}
.info-thanks h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 10px;
}
.info-thanks p {
    color: #666;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 22px;
}
.info-thanks-btn {
    padding: 11px 32px;
    border: none;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 16px rgba(225,48,108,0.25);
}
.info-thanks-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(225,48,108,0.35);
}

/* Responsivo */
@media (max-width: 600px) {
    .info-modal { padding: 20px 10px; }
    .info-modal-header { padding: 24px 22px 16px; }
    .info-modal-header h2 { font-size: 20px; }
    .info-form { padding: 20px 22px 24px; gap: 14px; }
    .info-form-row { grid-template-columns: 1fr; gap: 14px; }
    .info-thanks { padding: 36px 22px; }
    .info-thanks h3 { font-size: 19px; }
    .info-thanks-icon { font-size: 50px; }
}
