/* IMPORT ELEGANT FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400&display=swap');

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{        
    background: #101010; /* Very deep charcoal, more elegant than pure black */
    color: #E0E0E0;
    font-family: 'Inter', sans-serif; /* Clean, modern body font */
    -webkit-font-smoothing: antialiased;
}

/* HEADER & NAVIGATION */
.header
{
    position: sticky;
    top: 0;
    background: #101010D0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 24px;
    border: 1px solid #FFFFFF40;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.topnav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap; /* Permette al menu di andare a capo */
    justify-content: center; /* Mantiene i link sempre centrati */
}

/* For mobile */
@media (max-width: 600px)
{
    .header
    {
        padding: 16px 8px;
    }
    
    .header h1
    {
        font-size: 24px; /* Titolo leggermente più piccolo */
        margin-bottom: 8px;
    }

    .topnav
    {
        gap: 12px; /* Spazio ridotto tra le voci del menu */
    }

    .topnav a
    {
        font-size: 12px; /* Font proporzionato al mobile */
        letter-spacing: 1px;
    }
}

.topnav a
{
    color: #888;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.topnav a:hover, 
.topnav-active
{
    color: #FFFFFF !important;
    border-bottom: 1px solid #FFFFFF !important;
}

/* MAIN FEED & CARDS */
#feed
{
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 40px 20px;
}

 .card
 {
    margin-bottom: 60px; /* More breathing room between posts */
    background: transparent; /* Removed the box background */
    box-shadow: none; /* Removed the heavy shadow */
    border: 1px solid #FFFFFF40;
}

.card img
{
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #111;
    border-radius: 0px; 
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.card-content
{
    padding: 16px 0;
    text-align: center;
}

.card h2
{
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.card p
{
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    font-weight: 300;
}

/* MENUS SECTION */
.menu-hub
{
    text-align: center;
    padding: 8px 4px;
}

.menu-hub h2
{
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.menu-hub-btn
{
    display: block;
    background: transparent;
    color: #e0e0e0;
    text-decoration: none;
    padding: 18px;
    margin: 0 auto 20px auto;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0; /* Sharp edges */
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.menu-hub-btn:hover
{
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

/* TEXT SECTION */
.text-section
{
    padding: 8px 4px;
    text-align: center;
    max-width: 500px;
    margin: auto;
}

.text-section h2
{
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.text-section p
{
    font-size: 16px;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 25px;
    font-weight: 300;
}

/* UTILITIES */
#sentinel
{
    height: 40px;
}

.loader
{
    text-align: center;
    padding: 40px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
}

/* FULLSCREEN OVERLAY */
#overlay
{
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#overlay.active
{
    opacity: 1;
    transition: opacity 0.4s ease;
    visibility: visible;
}

#fullscreen
{    
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.98);
    transition: transform 0.4s ease;
}

#overlay.active #fullscreen
{
    transform: scale(1);
}

.reel-video {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5; /* Mantiene lo stesso aspetto delle immagini */
    object-fit: cover;
    cursor: pointer;
    background: #000;
}

/* Centratura contenuto overlay */
#fullscreen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}