﻿/* Kill layout padding and margin globally for homepage */
article.content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.page-content {
    padding: 1.5rem;
}

.lg-disable-zoom-on-video .lg-video-cont {
    pointer-events: none;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
    box-sizing: border-box;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

video {
    width: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    color: #444;
    max-width: 90%;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    .video-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

h1, h2, h3, h4, h5, h6 {
    color: #3a3a3a !important;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
}

.form-check-label {
    margin-left: 0.5em;
    font-size: 1.2em;
}

.homepage-intro {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.2rem;
    color: #333;
}

.text-wolf {
    color: #2e5e4e;
    font-weight: bold;
}


.admin-menu {
    position: relative;
}

    .admin-menu .flyout-menu {
        position: static;
        display: none;
        flex-direction: column;
        padding-left: 1.2rem; /* Indent of chidren items */
        background: none; 
    }

    .admin-menu:hover .flyout-menu {
        display: flex;
    }

.alert-text-strong {
    font-size: 1.1rem; /* Increase size of "Lo sapevi?" */
    display: inline-block; /* To allow margin between title and text */
    font-weight: bold;
}

.blockquote-quote {
    font-size: 1.6rem;
}

.text-quote{
    font-size: 1.45rem;
}

/* Custom class for fact content */
.custom-fact-alert {
    background-color: #343a40; /* Darker gray background for the fact content */
    color: #ffffff; /* White text for readability */
    padding: 15px 20px; /* Padding inside the fact box */
    border-radius: 10px; /* Rounded corners */
}

/* Emoji size and margin */
.emoji {
    font-size: 1.5rem; /* Larger emoji */
    margin-right: 0px; /* Space between emoji and text */
    vertical-align: middle;
}

/* Styling for the fact title */
.did-you-know {
    font-size: 1.5rem; /* Increase size of "Lo sapevi?" */
    display: inline-block; /* To allow margin between title and text */
    font-weight: bold; 
}

/* Fact content text */
.fact-text {
    font-size: 1.05rem;
    color: #ffffff;
    margin-top: 0px; /* Space between the fact title and fact text */
    margin-left: 5px;
}

/* Link styling */
.fact-link {
    color: #17a2b8; /* Light blue color for the link */
    font-weight: bold; /* Bold link */
    text-decoration: none; /* Remove underline */
    margin-left: 5px; /* Space between text and link */
}

    .fact-link:hover {
        text-decoration: underline; /* Underline link on hover */
    }

.custom-fact-alert {
    display: flex;
    flex-direction: column;
    padding: 15px 20px;
}

.text-big {
    font-size: 1.2rem; /* Increase size of text */
}

.alert-custom-info {
    background-color: #dad2c5;
    border-color: #dad2c5;
    color: #055160;
}

.assistant-message-text img {
    display: block;
    width: 100% !important;
    height: auto;
    max-width: 100%;
    object-fit: contain !important;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

.chat-header-spacer {
    height: 15rem;
}

@media (max-width: 600px) {
    .chat-header-spacer {
        height: 160px;
    }
}

.wolf-paw-icon {
    pointer-events: none;
    opacity: 0.85;
}

.map-container {
    height: 100%;
    width: 100%;
}


.map-wrapper {
    height: calc(100vh - 180px); /* ↑ aumenta se h1 e padding spingono giù */
    overflow: hidden;
}


#map {
    height: 100%;
    width: 100%;
}

.map-title {
    transition: text-shadow 0.3s ease;
    cursor: default;
}

    .map-title:hover {
        text-shadow: 0 0 8px rgba(0, 123, 255, 0.7);
    }

.tip-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 1rem;
    flex: 1 1 350px;
}

.video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.video-modal-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1rem;
}

/* This sets a fixed aspect ratio for the video container */
.video-player {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.video-caption {
    color: #fff;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

.video-actions {
    margin-top: 0.5rem;
}

/* Mobile refinement */
@media (max-width: 600px) {
    .video-modal-container {
        max-width: 100vw;
        max-height: 95vh;
        padding: 0.5rem;
    }

    .video-player {
        max-width: 100vw;
        max-height: 70vh;
        aspect-ratio: 16 / 9;
    }

    .video-caption {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }

    .video-actions {
        margin-top: 0.25rem;
    }
}

@keyframes scanline {
    0% {
        top: 10%;
        opacity: 0;
    }

    50% {
        top: 50%;
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .page-content > .container-fluid {
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }
}



.weather-widget {
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: 0.5rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(4px);
}

    .weather-widget small {
        font-size: 100%;
    }


.weather-widget-scale {
    transform-origin: top right;
    transition: transform 0.3s ease;
    transform: scale(1) translateY(0); /* <-- reset default */
}

@media (max-width: 992px) {
    .weather-widget-scale {
        transform: scale(0.70) translateY(0) !important;
    }
}

@media (max-width: 600px) {
    .weather-widget-scale {
        transform: scale(0.55) translateY(-10px) !important;
    }
}

.homepage-hero-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero image forcefully full-width */
.homepage-hero-wrapper {
    position: relative;
    background-color: #111; /* same color as navbar */
    margin: 0;
    padding: 0;
    z-index: 1;
    overflow: hidden;
}

.homepage-hero {
    display: block;
    width: 100%;
    height: auto; /* <--- so that image is not cut */
    margin: 0;
    padding: 0;
}

.breathing-img {
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

.continue-button {
    margin-top: 1rem;
    background-color: #444;
    color: #eee;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .continue-button:hover {
        background-color: #666;
    }

.delay-1 {
    transition-delay: 0.5s;
}

.delay-2 {
    transition-delay: 1.5s;
}

.delay-3 {
    transition-delay: 3s;
}

.delay-4 {
    transition-delay: 5s;
}

.delay-9 {
    transition-delay: 9s;
}

.narrative-text p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #333; /* o #222, less readable */
    line-height: 1.7;
}

.highlight-phrase {
    font-size: 1.1rem;
    color: #ccc;
    transition: all 0.4s ease;
}

    .highlight-phrase:hover {
        color: #fff;
        font-weight: bold;
    }


.pswp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

    .pswp-gallery a {
        display: flex;
        flex-direction: column;
        align-items: center; /* centra tutto orizzontalmente */
        text-decoration: none;
        color: inherit;
    }

    .pswp-gallery img {
        display: block;
    }

.thumb-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    text-align: center; /* centra il testo */
    width: 100%;
}

.js .photo-fallback {
    display: none;
}

.no-js .photo-fallback {
    display: block;
}

.book-title {
    font-family: Georgia, serif;
    font-weight: normal; 
}

.store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-badge {
    height: 35px; /* tutti piccoli e uniformi */
    width: auto;
    display: block;
}

.store-badges a {
    display: flex;
    align-items: center;
}