@font-face {
    font-family: 'Texture_Road_Regular';
    src: url('../fonts/Texture_Road_Regular.ttf') format('truetype');
}

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

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #E6B97F;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

header h1, header h2 {
    font-family: 'Texture_Road_Regular', sans-serif;
    margin: 0;
    text-shadow:
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000;
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

header h2 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
    font-weight: 400;
}

/* Main content */
main {
    width: 100%;
    max-width: 1200px;
    margin: 140px auto 60px;
    padding: 100px 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Button container */
.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

a.btn-youtube, a.btn-instagram, a.btn-strava {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    width: 200px;
    height: 60px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    user-select: none;
}

a.btn-youtube {
    background-color: #FF0000;
}

a.btn-instagram {
    background-color: #E4405F;
}

a.btn-strava {
    background-color: #FC4C02;
}

a.btn-youtube:hover {
    background-color: #D43F00;
    box-shadow: 0 8px 20px rgba(212, 63, 0, 0.5);
    transform: translateY(-3px);
}

a.btn-instagram:hover {
    background-color: #C13584;
    box-shadow: 0 8px 20px rgba(193, 53, 132, 0.5);
    transform: translateY(-3px);
}

a.btn-strava:hover {
    background-color: #D94302;
    box-shadow: 0 8px 20px rgba(217, 67, 2, 0.5);
    transform: translateY(-3px);
}

.social-logo {
    width: 24px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }
    header h2 {
        font-size: 1rem;
    }
    .button-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    a.btn-youtube, a.btn-instagram, a.btn-strava {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5rem;
    }
    header h2 {
        font-size: 0.9rem;
    }
}

/* Video container */
.video-container {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 560px;
    margin: 1.5rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.play-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('/static/images/youtube.svg') no-repeat center/contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.video-container img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
}

.photo-item {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
}

.photo-item {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
    letter-spacing: 0.02em;
}

.photo-info p {
    margin-bottom: 1rem;
    word-spacing: 0.05em;
    letter-spacing: 0.01em;
    text-align: justify;
}

/* Short text with ellipsis */
.short-text {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.1rem 1rem;
}

.full-text {
    padding: 0.1rem 1rem;
}

/* Buttons read more */
.read-more {
    color: black;
    background-color: #E6B97F;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #BB6900;
    color: white;
}

/* Hidden utility */
.hidden {
    display: none;
}

/* Lazyload */
.lazyload {
    visibility: hidden;
    transition: visibility 0.5s ease-in;
}

.lazyload[src] {
    visibility: visible;
}

/* Call to action */
.cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: black;
    background-color: #E6B97F;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    user-select: none;
}

.cta:hover {
    background-color: #BB6900;
    color: white;
}

.cta-container {
    text-align: center;
    margin: 2rem 0;
}

/* Scroll section */
.scroll-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f4f4f4;
    border-radius: 10px;
}

/* Ad container */
.ad-container {
    margin: 2rem auto;
    text-align: center;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #E6B97F;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

footer p {
    font-family: 'Texture_Road_Regular', sans-serif;
    font-size: 1rem;
    margin: 0;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* Destacar texto adaptado */
.destacar-texto {
    font-family: 'Texture_Road_Regular', sans-serif;
    font-size: 1.5rem;
    font-weight: 100;
    color: #E6B97F;
    background-color: white;
    padding: 1rem 1.5rem;
    border-left: 6px solid #E6B97F;
    box-shadow: 0 4px 8px rgba(0,0,0,0.35);
    text-align: center;
    margin: 1.5rem auto;
    max-width: 800px;
    border-radius: 6px;
    text-shadow: 0 0 2px rgba(230, 185, 127, 0.7);
    transition: background-color 0.3s ease, color 0.3s ease;

    line-height: 1.6;         /* boa legibilidade */
    letter-spacing: 0.10em;   /* leve espaçamento entre letras */
    word-spacing: 0.05em;     /* espaçamento entre palavras */
}

.destacar-texto:hover {
    background-color: #E6B97F;
    color: #333;
    border-left-color: #333;
    cursor: text;
}

/* Cortes de imagem específicos */
.corte_topo {
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.corte_centro {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.corte_base {
    object-fit: cover;
    object-position: bottom;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.corte_panoramico {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.corte_quadrado {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    overflow: hidden;
}

.corte_esquerda {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: left;
}

.corte_direita {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: right;
}


.corte_topo,
.corte_centro,
.corte_base,
.corte_panoramico,
.corte_quadrado {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.corte_topo {
    object-position: top;
}

.corte_centro {
    object-position: center;
}

.corte_base {
    object-position: bottom;
}

.corte_panoramico {
    height: 160px;
    object-position: center;
}

.corte_quadrado {
    height: auto;
    aspect-ratio: 1 / 1;
    object-position: center;
}

header.shrink {
    padding: 0.3rem 0;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

header.shrink h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    transition: font-size 0.3s ease;
}

header.shrink h2 {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    transition: font-size 0.3s ease;
}

.photo-item {
    scroll-margin-top: 100px;
    padding-bottom: 1em;
}

.close-top {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.close-top:hover {
  color: #000;
}

.photo-info {
  position: relative;
}

.hidden {
  display: none;
}
