:root {
    --bg-color: #0A0A0A;
    --gold: #f4b840;
    --gold-hover: #d9a02e;
    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;
    --border-color: rgba(244, 184, 64, 0.2);
    --neon-glow: 0 0 10px rgba(244, 184, 64, 0.6), 0 0 20px rgba(244, 184, 64, 0.4);
    --color-bg-form: rgba(244, 184, 64, 0.081);
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
}

@media screen and (max-width: 480px) {/*Telefono piccolo*/
    header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 4%; border-bottom: 1px solid rgba(255,255,255,0.05);
        position: sticky;top: 0;
        z-index: 100;
        background-color: rgba(10, 10, 10, 0.7); 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
    }
    .background-image {
    position: absolute;
    top: 0; left: 0; width: 480px; height: 75vh;
    background-image:linear-gradient(to bottom, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 1) 100%),url("/assets/background_imageLUB.png");
    background-size: cover;
    background-position: center top;
    filter: blur(4px)/*sfocatura*/ brightness(0.4)/*luminosità*/; 
}
.timer-container{
    text-align: center;
    font-family:'Space Mono';
    margin: 40px 0px 0px 0px; 
    padding: 12px 16px; 
    border: 2px solid var(--color-bg-form); 
    border-radius: 10px; 
    width: 81%;
}

.g-recaptcha {
        /* Il ReCaptcha è largo 304px, se lo schermo è minuscolo lo rimpiccioliamo proporzionalmente */
        transform: scale(0.85); 
        transform-origin: 0 0; /* Lo mantiene allineato a sinistra */
    }
}

@media (max-width: 768px) {/*telefono grande/ tablet*/
    fieldset {
        max-width: 95%; /* 81% su mobile è troppo poco, allarghiamo al 95% */
        padding: 12px 10px; /* Riduciamo leggermente il padding laterale */
    }
}

.background-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 60vh;
    background-image:linear-gradient(to bottom, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, 1) 100%),url("/assets/background_imageLUB.png");
    background-size: cover;
    background-position: center top;
    filter: blur(4px)/*sfocatura*/ brightness(0.4)/*luminosità*/; 
    z-index: 0;
}
header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1%; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.7); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    display: flex; align-items: center; 
    gap: 0.5rem;
    font-family: 'Playfair Display', serif; 
    font-size: 1.2rem;
}
.icona-logo { color: var(--gold);background-repeat: no-repeat; background-position: left; /*padding-left: 25px;*/}

.headers-buttons { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    font-family:'Space Mono';
    color: var(--text-muted); 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    font-family:'Space Mono', monospace;
}

.linkStories{
    font-size: 16px;
    font-weight: bold;
    color:var(--text-muted);
    text-decoration: none;
    padding: 12px 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.linkStories:hover, .linkStories:active{color: var(--gold); text-decoration: var(--neon-glow); background-color: rgba(244, 184, 64, 0.05);}

.btn-small {
    background-color: var(--gold); 
    color: #000; 
    border: none;
    padding: 0.4rem 1rem; 
    border-radius: 20px; 
    font-weight: 500;
    font-size: 0.85rem; 
    cursor: pointer;
    font-family:'Inter Mono', monospace;
}
.btn-small:hover{background-color: var(--gold-hover);transition: all 0.3s ease; font-weight: bold;}

main { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; position: relative; z-index: 1;flex: 1/*per allargarsi quanto basta per spingere il footer più in basso possibile*/;}

.sub-header {
    color: var(--gold); font-size: 0.75rem; 
    letter-spacing: 3px;
    text-transform: uppercase; 
    border-top: 3px solid var(--gold-hover);
    padding-bottom: 0.5rem; 
    margin-bottom: 2rem; display: inline-block;
    font-family:'Space Mono', monospace; 
    font-size: 16px;
    border-radius: 4px;
}


.sub-header1{
    color: var(--gold); 
    font-size: 0.75rem; 
    letter-spacing: 3px;
    text-transform: uppercase; 
    border-top: 3px solid var(--gold-hover);
    padding-bottom: 0.5rem; 
    margin-bottom: 0.5rem;
    font-family:'Space Mono', monospace; 
    font-size: 15px;
    border-radius: 4px; 
    font-weight: bold;
}

.titolo {
    font-family: 'Playfair Display', serif; font-size: 3rem;
    font-weight: 400; line-height: 1.1; margin: 0 0 1.5rem 0;
}


.flicker {
    color: var(--gold);
    animation: flicker 4s infinite alternate;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: var(--neon-glow); }
    20%, 24%, 55% { opacity: 0.5; text-shadow: none; }
}

p.description {
    color: var(--text-muted); font-size: 1.1rem; line-height: 1.6;
    margin-bottom: 3rem; font-weight: 300;
}

.racconta--s { display: flex; flex-direction: column; gap: 1rem; max-width: 300px; }

.btn-pill {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 1rem 1.5rem; border-radius: 50px; font-size: 1rem;
    font-family: 'Inter', sans-serif; font-weight: 400; cursor: pointer;
    transition: all 0.2s ease; border: none;
}

.btn-primary { background-color: var(--gold); color: #000; }
.btn-primary:hover { background-color: var(--gold-hover); }

.btn-secondary { background-color: transparent; color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-secondary:hover { border-color: var(--gold); }

.icon { width: 18px; height: 18px; fill: currentColor; }

a {
    text-decoration: none; /* Toglie la sottolineatura */
    color: inherit;        /* Usa il colore del testo circostante invece del blu */
}

a:visited, a:active {color: inherit;}

.tovagliolo-bancone{
    position: absolute; bottom: 0; left: 0; width: 100%;
    background-image: url('https://images.unsplash.com/photo-1602524812061-3f5e4c8b6d9e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; background-position: center;
    height: 150px; opacity: 0.2;
}

input {
    padding: 8px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-contatore{
    display: inline-flex;
    flex-direction: column;
    font-family: sans-serif;
    width: 100%;
    max-width: 100%;
    box-sizing: 100%;
}

#contatore {font-size: 12px;color: #666;text-align: right;margin-top: 5px;}

input{
    font-family:'Space Mono', monospace;
    background-color:  var(--color-bg-form);
    border: 1px solid var(--color-bg-form);
    border-radius: 5px; 
    background-color: var(--color-bg-form);
    color: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
    font-size: 16px;
    padding: 4px;

}
textarea{
    font-family:'Space Mono', monospace;
    background-color:  var(--color-bg-form);
    border: 1px solid var(--color-bg-form);
    border-radius: 5px; background-color: var(--color-bg-form);
    width: 100%; 
    min-height: 100px; 
    /*max-height: 500px;*/
    resize: none; /*toglie il robo all'angolo*/
    overflow-y: hidden; 
    box-sizing: border-box; 
    padding: 12px; 
    font-size: 18px;
    color: white;
    max-width: 100%;
    field-sizing: content;/*scende il textarea solo con le lettere. No sbarra scorrimento*/
    line-height: 1.6;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(244, 184, 64, 0.3);
}

label{font-family:'Space Mono', monospace;}

fieldset{
    position: relative;  
    max-width: 81%;
    width:100%; 
    box-sizing: border-box;/*così starà dentro al cubo*/
    padding: 12px 16px;
    text-align: left;
    margin: 40px auto 0 auto;
    border: 1px solid var(--color-bg-form);
    border-radius: 15px; 
    background-color: var(--color-bg-form);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    display: flex; 
    flex-direction: column;
}
fieldset .sub-header {
    align-self: flex-start;
    margin-top: 0;
}
.swiper {width: 100%;height: 100%;min-height: 300px;}

.swiper-slide {
    background: var(--color-bg-form);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100%;
    font-width:100%;
    /*font-weight: bold;*/
    border: 2px solid var(--color-bg-form);
    border-radius: 10px;
    font-family:'Space Mono';
    padding: 12px 16px;text-align: left;
    margin: 40px auto 0 auto;
}

.timer-container{
    text-align: center;
    font-family:'Space Mono';
    margin: 40px 0px 0px 0px; 
    padding: 12px 16px; 
    border: 2px solid var(--color-bg-form); 
    border-radius: 10px; 
    width: 81%;
    min-height: 40px;
}

#countdown-podcast {font-size: 40px;font-weight: bold;color: var(--gold);}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporzione 16:9 */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 10px;
    border: 2px solid var(--color-bg-form);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.schermata-password{

    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%; 
    background-color: #0A0A0A; 
    z-index: 99999; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;

}

.footer{
    background-color: var(--bg-color);
    color: white;
    padding: 40px 20px;
}

.footer-container{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap:30px;
}