:root {
    --main-color: 255, 237, 0;
    --secondary-color: 255, 255, 255;
    --text-color: 17, 17, 17;
    --font-title: "gobold", sans-serif;
}

/* FONT FACE */
@font-face {
    font-family: gobold;
    src: url(/fonts/GoboldThin.woff2) format("woff2"), url(/fonts/GoboldThin.woff) format("woff");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: crimson text;
    src: local("Crimson Text Regular"), local("CrimsonText-Regular"), url(/fonts/CrimsonText-Regular.woff2) format("woff2"), url(/fonts/CrimsonText-Regular.woff) format("woff");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: crimson text;
    src: local("Crimson Text Italic"), local("CrimsonText-Italic"), url(/fonts/CrimsonText-Italic.woff2) format("woff2"), url(/fonts/CrimsonText-Italic.woff) format("woff");
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: crimson text;
    src: local("Crimson Text Bold"), local("CrimsonText-Bold"), url(/fonts/CrimsonText-Bold.woff2) format("woff2"), url(/fonts/CrimsonText-Bold.woff) format("woff");
    font-weight: 700;
    font-style: normal;
}

/* RESET */
* {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
html {
    font-size: 1.25em;
}
html.sr .load-hidden {
    visibility: hidden;
}

/* BODY FLEX LAYOUT PER LOGO FOOTER VISIBILE */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgb(var(--main-color));
    color: rgb(var(--text-color));
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

/* MENU STICKY ON TOP */
.main-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: rgb(var(--text-color));
}
.main-nav {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.main-nav-item {
    text-align: center;
    position: relative;
}
.main-nav-link {
    padding: 10px 16px;
    display: block;
    text-decoration: none;
    transition: color 200ms ease-out;
    font-size: 1em;
}
.main-nav-link.active, .main-nav-link:hover, .main-nav-link:focus {
    color: rgb(var(--secondary-color));
}
.dropdown {
    position: relative;
}
.dropdown > .main-nav-link {
    cursor: pointer;
}
.main-nav-link:visited {
    color: rgb(var(--main-color)) !important; 
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(var(--text-color));
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 140px;
    z-index: 1000;
    border-radius: 2px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    text-align: left;
}
.dropdown.open .dropdown-menu { display: block; }
@media (max-width:700px) {
    .dropdown-menu {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        min-width: auto;
        box-shadow: none;
        background-color: rgb(var(--text-color));
    }
    .main-nav {
        flex-wrap: nowrap;
    }
    .dropdown:hover .dropdown-menu { display: block; }
}
.dropdown-menu li a {
    display: block;
    padding: 8px 14px;
    color: rgb(var(--main-color));
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: uppercase;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: rgb(var(--text-color));
    color: rgb(var(--secondary-color));
}
.main-nav-link:visited,
.dropdown-menu li a:visited {
    color: #ffed00 !important;
}
.main-nav-link:visited:hover,
.dropdown-menu li a:visited:hover {
    color: rgb(var(--secondary-color)) !important;
    background-color: rgb(var(--text-color));
}

/* CONTENUTO CENTRATO */
.centered-block {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* padding: 24px 0; */
}

/* FOOTER LOGO SEMPRE IN BASSO */
.logo-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 3px;
    background: rgb(var(--main-color));
    border-top: 0;
    margin-top: auto; /* allinea il footer sempre in basso */
}
.logo-footer .data_svg {
    width: 85%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive: logo più piccolo su mobile */
@media (max-width: 700px) {
    .logo-footer .data_svg {
        width: 70%;
        max-width: 250px;
    }
    .centered-block {
        padding: 24px 0;
    }
}

/* IMMAGINI SVG UNIFORMI */
.data_svg {
    width: 85%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* HEADER E LOGO */
header {
    padding: 0 0;
    background-color: rgb(var(--main-color));
    color: rgb(var(--secondary-color));
    text-align: center;
}
.logo-container {
    margin: 75px auto;
    max-width: 500px;
}
@media (max-width:700px) {
    .logo-container {
        padding: 0 50px;
    }
}
.home-logo-container {
    margin: 0 auto;
    padding: 50px;
    max-width: 770px;
}
@media (max-width:700px) {
    .home-logo-container {
        width: 100%;
        transform: scale(1);
    }
}
.home-logo-svg {
    width: 100%;
    height: auto;
}
@media (max-width:700px) {
    .home-logo-svg-before {
        width: 70%;
        height: auto;
    }
}
@media (max-width:700px) {
    .home-logo-svg-after {
        margin-top: 10px;
        width: 100%;
        height: auto;
    }
}
.home-logo-p {
    margin-top: 30px;
    font-size: 1.5em;
    font-style: italic;
}
@media (max-width:700px) {
    .home-logo-p {
        font-size: 1em;
    }
}
.l {
    visibility: hidden;
    fill: rgb(var(--text-color));
}
.c {
    fill: rgb(var(--text-color));
}
@media (max-width:700px) {
    .l, .c {
        fill: rgb(var(--text-color));
    }
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 400;
    letter-spacing: 1px;
}
h1 {
    height: 55px;
    line-height: 55px;
    font-size: 4em;
}
h2 {
    font-size: 1.5em;
}
h3 {
    margin-top: .5em;
    font-size: 1.1em;
}
h4 {
    padding-bottom: 35px;
    text-align: center;
    font-size: 1.17em;
}
h5 {
    padding: 5px 7px;
    background-color: rgb(var(--text-color));
    color: rgb(var(--secondary-color));
}
p {
    margin: 0;
    font-family: crimson text, serif;
    font-weight: 400;
    text-transform: none;
    color: #000000;
}
@media (max-width:500px) {
    h1 {
        height: 55px;
        line-height: 57px;
        font-size: 3.5em;
    }
    h2 {
        font-size: 1.1em;
    }
    h3 {
        margin-top: .5em;
        font-size: .8em;
    }
    p {
        font-size: .9rem;
    }
}
.events-title {
    padding: 0;
    margin: 70px 0 15px;
}
.events-description {
    font-family: crimson text, serif;
    font-weight: 400;
    text-align: center;
    text-transform: none;
    color: rgb(var(--text-color));
    width: 600px;
    margin-left: -100px;
    margin-top: 1rem;
    font-size: 1rem;
}
@media (max-width:700px) {
    .events-description {
        width: 100%;
        margin-left: 0;
    }
}
.content {
    padding: 95px 10vw 0;
    will-change: transform;
    background-color: rgb(var(--main-color));
    color: rgb(var(--text-color));
}
@media (max-width:700px) {
    .content {
        padding: 75px 10vw 0;
        background-color: rgb(var(--main-color));
        color: rgb(var(--text-color));
    }
}
.content a {
    text-decoration: underline;
}
.content a.event {
    text-decoration: none;
}
.content-header {
    padding: 0 0 1rem;
    color: rgb(var(--text-color));
}
.content-date {
    margin-top: 0;
    margin-bottom: 1rem;
}
.content-title {
    margin-top: 0;
    margin-bottom: 0;
}
.content-description {
    margin-top: .2rem;
}
.content-type {
    margin: 0 0 .5rem;
    padding: .2em .6em;
    display: inline-block;
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.3;
    font-size: .8rem;
    text-transform: uppercase;
    background-color: rgb(var(--text-color));
    color: rgb(var(--main-color));
}
@media (max-width:700px) {
    .content-description {
        margin-top: 1rem;
        font-size: .9rem;
    }
    .content-type {
        color: rgb(var(--text-color));
    }
}
.content-image {
    margin: 0 auto;
    max-width: 900px;
}
@media (min-width:920px) {
    .content-image {
        width: 800px;
    }
}
.content-body {
    margin: 0 auto 1rem;
    max-width: 600px;
}
.content-body p {
    margin-bottom: 1rem;
}
.content-body h2, .content-body h3, .content-body h4, .content-body h5, .content-body h6 {
    margin-bottom: 1rem;
    padding: 0;
    text-align: left;
    font-weight: 400;
}
.content-body ul {
    margin-bottom: 1rem;
    padding: 0 20px;
}
.content-body ul li {
    font-size: 1rem;
    font-family: crimson text, serif;
    text-transform: none;
}
.content-body hr {
    border: 0;
    border-top: 2px solid #111;
    width: 170px;
    margin: 2rem 0 1rem;
}
.content-body div+p {
    margin-top: 50px;
}
article {
    padding: 10px;
    flex-basis: 25%;
}
@media (max-width:900px) {
    article {
        flex-basis: 50%;
    }
}
.events-header {
    margin: 50px 0 0;
    background-color: rgb(var(--main-color));
}
.events-logo-container {
    margin: 100px auto 85px;
    padding: 0;
    max-width: 400px;
}
@media (max-width:700px) {
    .events-logo-container {
        margin: 35px auto;
        padding: 0 50px;
    }
}
.event {
    display: grid;
    grid-template-columns: 1fr 6fr;
    grid-column-gap: 5px;
    margin: 1rem 0;
    padding: 5px;
    cursor: pointer;
    transition: all .5s ease-out;
}
.date {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
}
.time, .title, .description, .type {
    margin: 0;
    font-family: var(--font-title);
    font-weight: 400;
    font-size: .8rem;
    text-transform: none;
}
.time, .description, .type {
    color: rgb(var(--text-color));
    font-weight: 400;
}
.title, .description, .type {
    grid-column-start: 2;
}
.description {
    font-size: .7rem;
}
.type {
    margin-top: .25rem;
    margin-bottom: 1rem;
    font-size: .6rem;
}
@media (min-width:900px) {
    .event:hover {
        background-color: #fff;
        transform: scale(1.2);
        transition: all .2s ease-out;
    }
    .event:hover .time, .event:hover .title, .event:hover .type, .event:hover .description {
        color: rgb(var(--text-color));
    }
}
@media (max-width:700px) {
    header, footer {
        padding: 35px 0;
    }
    .main-description {
        padding: 35px 0;
        text-align: left;
    }
    h5 {
        padding: 0;
        top: 5px;
        font-size: .7rem;
    }
    article {
        padding: 5px 0 15px;
        border-top: 2px solid rgb(var(--text-color));
        display: grid;
        grid-template-columns: 1fr 2fr 2fr;
        grid-gap: 10px;
        align-items: baseline;
    }
    .event {
        margin: 0;
        padding: 0;
        display: block;
        grid-column-start: 2;
    }
    .event:nth-child(odd) {
        grid-column-start: 3;
    }
    h5, .time, .description, .type {
        color: rgb(var(--text-color));
    }
    .title {
        border-bottom: 1px solid rgba(17, 17, 17, .4);
        padding-bottom: 2px;
        margin-bottom: 2px;
        transition: none;
    }
    .desktop {
        display: none;
    }
}
@media (min-width:701px) {
    .mobile {
        display: none;
    }
}
@media (max-width:500px) {
    article {
        grid-template-columns: 1fr;
        align-items: stretch;
        border: none;
    }
    .event, .event:nth-child(odd) {
        grid-column-start: 1;
    }
    .date {
        padding: 10px 20px;
        margin-left: -20px;
        margin-right: -20px;
        color: rgb(var(--main-color));
        background-color: rgb(var(--text-color));
    }
}
a.events-link {
    background: 0 0;
    border: 0;
    color: rgb(var(--text-color));
    position: fixed;
    top: 80px;
    right: 60px;
    cursor: pointer;
    transform: scale(1.5);
    outline: none;
    z-index: 3;
    text-decoration: none;
}
@media (max-width:700px) {
    a.events-link {
        top: 60px;
        right: 30px;
        color: rgb(var(--main-color));
    }
}
a.events-link:before {
    content: "\2715";
}
a.events-link span {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
footer {
    padding: 1px 0;
    margin-top: auto;
    background-color: rgb(var(--main-color));
    color: rgb(var(--secondary-color));
    text-align: center;
}
@media (max-width:700px) {
    footer {
        background-color: rgb(var(--text-color));
    }
}
footer p {
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: uppercase;
}
.coming-soon {
    margin-bottom: 10vh;
    text-align: center;
}
#countdown {
    color: #0B1215;
    padding: 1.1rem 0;
    text-align: center;
    margin: 0 auto;
    width: 95%;
    max-width: 500px;
}
#countdown #countdownLong, #countdown #countdownShort {
    font-family: gobold;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 2px;
}
#countdown #countdownLong {
    display: none;
}
#countdown #countdownShort {
    display: block;
}
@media (max-width:750px) {
    #countdown {
        padding: 3vw;
    }
    #countdown #countdownLong, #countdown #countdownShort {
        font-size: 16px;
    }
}
#countdown:hover #countdownLong, #countdown:active #countdownLong {
    display: block;
}
#countdown:hover #countdownShort, #countdown:active #countdownShort {
    display: none;
}

/* gestione colori link */
.main-nav-link {
    color: #ffed00;
}
.main-nav-link.active,
.main-nav-link:hover,
.main-nav-link:focus {
    color: rgb(var(--secondary-color));
}
.dropdown-menu li a {
    color: rgb(var(--main-color));
}
.main-nav-link:visited,
.dropdown-menu li a:visited {
    color: #ffed00 !important;
}
.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
    background-color: rgb(var(--text-color));
    color: rgb(var(--secondary-color));
}
.main-nav-link:visited:hover,
.dropdown-menu li a:visited:hover {
    color: rgb(var(--secondary-color)) !important;
    background-color: rgb(var(--text-color));
}

.text-block {
  max-width: 700px;
  margin: 0 auto;   /* centra su desktop */
  font-family: "crimson text", serif;
  font-weight: 400;
  text-transform: none;
  color: rgb(var(--text-color));
}

.text-block p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* su mobile: full width */
@media (max-width:760px) {
  .text-block {
    max-width: 100%;
    padding: 0 20px; /* un po' di respiro ai lati */
  }
}

/* Il footer logo è sempre visibile anche su finestre piccole */
/* (commentata la vecchia regola che lo nascondeva)
@media (max-height: 400px) {
    .logo-footer {
        display: none;
    }
}
*/