/* Import lora font from local file */
@font-face {
    font-family: 'Lora';
    src: url('fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype'),
         url('fonts/Lora-VariableFont_wght.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
/* Import Portland font from local file */
@font-face {
    font-family: 'Portland';
    src: url('fonts/PortlandLdo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Portland';
    src: url('fonts/PortlandLdoBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
body, input{
    background-color: #f9f9f9;
    font-family: 'Lora', serif;
}
main{
    min-height: 70vh;
}
input{
    transition: all .3s ease;
}
p {
    font-family: "Open Sans", sans-serif;
}

h1, h2,h3,h4{
    font-family: 'Portland', serif;
    font-weight: bold !important;
}
a:hover{
    text-decoration: underline;
}
.lora{
    font-family: 'Lora', serif;
}
hr{
    height: 2px !important;
    background-color: #000;
}
#categories{
    font-family: "Open Sans", sans-serif;
    color: #666;
}
#categories .selected{
    border-bottom: 2px solid #000;
    color: black;
}
#categories .selected:hover{
    text-decoration: none;
}
#categories span:hover{
    cursor:pointer;
}

.event-wheel-page {
    --wheel-item-height: 122px;
    --wheel-ink: #15324a;
    --wheel-blue: #2e6a9d;
    --wheel-soft: #e7f1fa;
}

.wheel-hero {
    background:
        radial-gradient(circle at 18% 20%, #ffffff 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(130deg, #d8ebfb, #f7fcff 55%, #e8f3fc);
    border: 1px solid #cfe2f4;
}

.wheel-shell,
.event-detail {
    position: relative;
    background: #ffffff;
    border: 1px solid #dbe8f5;
}

.event-wheel {
    position: relative;
    height: calc(var(--wheel-item-height) * 3.4);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    border-radius: 1rem;
    padding: 0;
    background: linear-gradient(180deg, #fafdff 0%, #eff7fd 100%);
    border: 1px solid #d6e8f8;
}

.event-wheel::-webkit-scrollbar {
    display: none;
}

.wheel-card {
    height: var(--wheel-item-height);
    margin: 0 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid #d7e5f3;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0.95rem;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    transform-origin: center;
    cursor: pointer;
}

.wheel-date {
    font-family: "Open Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: #50789d;
}

.wheel-card h3 {
    margin-top: 0.2rem;
    font-family: "Open Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--wheel-ink);
}

.wheel-time {
    margin-top: 0.26rem;
    font-size: 0.86rem;
    color: #436481;
}

.wheel-card.is-selected {
    border-color: #8cb8dd;
    box-shadow: 0 8px 24px rgba(20, 75, 122, 0.18);
}


.event-detail-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Open Sans", sans-serif;
    font-size: 0.75rem;
    color: #5d81a3;
}

.event-detail-meta {
    color: #204563;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
}

.event-detail-description {
    color: #35516b;
}

@media (max-width: 768px) {
    .event-wheel-page {
        --wheel-item-height: 112px;
    }

    .event-wheel {
        height: calc(var(--wheel-item-height) * 3.1);
    }
}

.w-lg{
    width: 25rem;
}

.hidden-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden-scroll.right {
  transform: none;
  transform: translateX(50px);
}

.hidden-scroll.left {
  transform: none;
  transform: translateX(-50px);
}
.hidden-scroll.up{
    transform: none;
    transform: translateY(-50px);
}

.show-scroll {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#notizie-small-list img.w-full,
.notizie-small-list img.w-full{
    filter: blur(3px) brightness(0.9);
    transform: scale(1.05);
}
