@font-face {
  font-family: DreamerTM;
  src: url(fonts/DreamerTM-Regular.ttf);
}

@font-face {
  font-family: RobotoMono;
  src: url(fonts/RobotoMono-Regular.ttf);
}

@font-face {
  font-family: TNRCondensed;
  src: url(fonts/Times\ New\ Roman\ MT\ Condensed\ Regular.otf);
}

/* Basic Reset & Body Styling */
:root {
    --primary-color: #000;
    /* Dark color for text */
    --secondary-color:  #00f;
    /* Lighter color for links */
    --background-color: #f5f5f5;
    /* Light background */
    --important-text-color:  #00f;
}

body {
    margin: 0;
    font-family: TNRCondensed;
    background-color: #f5f5f5;
    /* Light background to match the image */
    color: #000;
    line-height: 1.6;
}

/* Header Styling */
header {
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    padding: 0px 0px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    /* For absolute positioning of top-bar elements on smaller screens if needed */
    font-family: RobotoMono;
}

/* Logo Styling */
.logo {
    font-family: DreamerTM;
    font-size: 120px;
    line-height: 1;
    color: #000;
    margin-bottom: 25px;     /* spazio tra logo e menu */
    text-align: center;       /* qui il trucco: centramento del testo o immagine */
}

.logo a {
    font-family: DreamerTM;
    font-size: 120px;
    line-height: 1;
    color: #000;
    text-decoration: none;
}


nav.menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

/* Top bar for social icons and right links */
.header-top-bar {
    position: flex;
    top: 0;
    left: 0;
    width: 98%;
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
    align-items: center;
    padding: 10px 20px; /* aggiungi un po' di padding se serve */
    z-index: 1000; /* assicurati che stia sopra gli altri elementi */
}

@media (min-width: 780px) {
    .header-top-bar {
        position: fixed;
        top: 0;
        left: 0;
    }

}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.2em;
    text-decoration: none;
    margin-right: 15px;
    /* Space between social icons */
    transition: color 0.3s ease;
}

.social-icons a:last-child {
    margin-right: 0;
}

.social-icons a:hover {
    color: #000;
}

.header-right-links {
    display: flex;
    gap: 30px;
    /* Space between About and SHOP links */
}

.header-right-links a {
    text-decoration: underline;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.header-right-links a:hover {
    color: #000;
}

/* Main Navigation Styling (Home About Contact SHOP) */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Space between nav items */
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--important-text-color);
    font-weight: 400;
    font-size: 0.95em;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #000;
}

/* MOBILE NAV */
/* Hamburger menu icon */

.hamburger-menu {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
    position: fixed;
    right: 20px;
    top: 30px;
    z-index: 1001;
}

/* Sidebar Styling */
.sidebar {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color:  #f5f5f5;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.open {
    width: 100%;
}


.sidebar-close-btn {
    position: absolute;
    top: 30px;
    left: 15px;
    font-size: 2em;
    color: var(--primary-color);
    cursor: pointer;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.sidebar-nav ul li {
    padding: 15px 0;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.2em;
    display: block;
    transition: 0.3s;
}

.sidebar-nav ul li a:hover {
    color: var(--secondary-color);
}

.sidebar-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    margin-bottom: 40px;
}

.sidebar-social-icons a {
    color: var(--secondary-color);
    font-size: 1.8em;
    transition: color 0.3s ease;
    text-decoration: none;
}

.sidebar-social-icons a:hover {
    color: #000;
}

/* Main Content Grid */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive grid, 3 per row */
    gap: 10px;
    /* Space between grid items */
    justify-items: center;
}

.grid-item {
    position: relative;
    aspect-ratio: 1 / 1; /* IMMAGINE SEMPRE QUADRATA */
    overflow: hidden;
    border-radius: 0px;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-item-content {
    padding: 0px;
    width: 100%;
    /* Ensure content takes full width of the item */
    box-sizing: border-box;
    /* Include padding in width */
}

/* Testo centrato */
.grid-item h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 0.8em;
    font-family: RobotoMono, monospace;
    font-weight: normal;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 2;
    text-align: left;
    max-width: 95%; /* evita che vada ai bordi */
    line-height: 1.2;
}

/* Hover: mostra overlay e testo */
.grid-item:hover::after {
    opacity: 1;
}

.grid-item:hover h3 {
    opacity: 1;
}

/* Overlay oscurante */
.grid-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #00f;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 1; /* overlay sotto il testo */
}



/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .header-right-links {
    display: none;
    }

    .d-flex-header {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .logo {
        font-size: 100px; /* più piccolo rispetto ai 120px desktop */
        align-self: center;
    }

    .header-top-bar {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .social-icons {
    display: none
    }

    .sidebar .sidebar-social-icons {
        margin-bottom: 100px;
    }


    .image-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid-item img,
    .grid-item img,
    .placeholder {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .header-top-bar {
        display: none;
    }

        .logo a {
        font-size: 80px; /* più piccolo rispetto ai 120px desktop */
        align-self: center;
    }

     .sidebar img {
        margin-top: 1em;
        height: 80px;
    }

    .sidebar .sidebar-social-icons {
        margin-bottom: 100px;
    }

    .social-icons {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .social-icons a {
        font-size: 1em;
        margin-right: 10px;
    }

    .header-right-links {
        gap: 20px;
    }

    .header-right-links a,
    .main-nav ul li a {
        font-size: 0.9em;
    }

    .sidebar.open {
        width: 100%;
    }
}



/* --- */
/* About Page Specific Styling */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
}

.about-content p {
    font-size: 1.2em;
    line-height: 1;
    color: var(--primary-color);
}

.about-content h3 {
    margin-top: 2em;
    font-size: 1.3em;
    color: var(--primary-color);
    text-align: center;
}

.highlighted {
    color: var(--important-text-color) !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.mt-1 {
    margin-top: 0.25em !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.lh-1 {
    line-height: 1 !important;
}

/* Adjustments for responsiveness on the about page */
@media (max-width: 768px) {
    .about-content {
        padding: 15px;
    }

    .about-content p {
        font-size: 1em;
    }
}


/* --- */
/* Gallery Page Specific Styling */
.gallery-grid {
    display: grid;
    gap: 10px;
}

.gallery-grid-2-columns {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid-1-column {
    grid-template-columns: repeat(1, 1fr);
}

.gallery-grid-3-columns {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-item {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    width: 100%;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    /* Fixed height for image consistency */
    object-fit: cover;
    /* Ensures images cover the area without distortion */
    display: block;
    border-bottom: 1px solid #f5f5f5;
    /* Separator for image and text */
}

/* Modern Styles for Column Controls */
.column-controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.column-controls button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    min-width: 120px;
}

.column-controls button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.column-controls button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

@media (max-width: 1024px) {
    .gallery-grid,
    .gallery-grid-1-column,
    .gallery-grid-2-columns,
    .gallery-grid-3-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-grid-item img {
        height: 400px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .column-controls {
        display: none;
    }

    .gallery-grid,
    .gallery-grid-1-column,
    .gallery-grid-2-columns,
    .gallery-grid-3-columns {
        gap: 16px;
    }

    .gallery-grid-item img {
        height: 250px;
        width: 100%;
    }
}

.gallery-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0rem 0;
    margin-bottom: 0.1em;
}

.gallery-title-client-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.gallery-title-client {
    font-size: 2.5em;
    line-height: 0.8;
    font-weight: normal;
    color: #000;
}

.gallery-subtitle {
    font-size: 0.8em;
    font-family: RobotoMono;
    color: #00f;
    margin-top: 0.7em;
}

.gallery-year {
    font-size: 2.5em; /* Più grande di prima */
    font-weight: normal;
    line-height: 0.8;
    color: #00f;
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    /* Ensure the whole image is visible */
}

.close,
.prev,
.next {
    position: absolute;
    color: #f5f5f5;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    /* Prevent text selection on arrows */
    padding: 10px;
    /* Make clickable area larger */
}

.close:hover {
    color: #f5f5f5;
    background: none;
    /* No transform for close button */
    transition: color 0.2s;
}

.prev:hover,
.next:hover {
    transform: scale(1.1) translateY(-45%);
    color: #f5f5f5;
    transition: transform 0.2s, color 0.2s;
}

.close {
    top: 20px;
    right: 30px;
    font-size: 40px;
    /* Slightly larger for close button */
    border-radius: 0;
    /* No border-radius for the 'X' button */
    background: none;
    /* No background for close button */
}

.close:hover {
    background: none;
    color: #f5f5f5;
}


.prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}


/* Responsive styles for gallery grid */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gallery-grid-item img {
        height: 400px;
        width: 100%;

    }
}

@media (max-width: 600px) {
    .gallery-grid {
        gap: 16px;
    }

    .gallery-grid-item img {
        height: 250px;
        width: 100%;
    }
}

/* Responsive tweaks for lightbox controls */
@media (max-width: 768px) {
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .prev,
    .next {
        font-size: 24px;
        padding: 8px;
        top: 50%;
        /* Keep vertical alignment */
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .image-counter {
        font-size: 14px;
        bottom: 10px;
    }

}



/* Responsive video container */
/* Container for the video player and text */
.video-container-wrapper {
    width: 100%;
    background-color: #f5f5f5;
    /* White background */
    padding: 1.5rem;
    /* 24px padding */
    border-radius: 0.5rem;
    /* 8px border-radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

/* Responsive video container */
.video-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio (height / width = 9 / 16 = 0.5625) */
    overflow: hidden;
    border-radius: 0.5rem;
    /* 8px border-radius */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Soft shadow for the video player */
    background-color: #000;
    /* Black background for letterboxing */
}

.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the whole video is visible, letterboxing if aspect ratio differs */
    border-radius: 0.5rem;
    /* 8px border-radius, applied here for consistency */
}

/* Styles for the new video information section */
.video-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align items to the top */
    width: 100%;
    padding: 1rem 0;
    /* Some padding around the info */
    margin-bottom: 1em;
    /* Space before the video */
    border-bottom: 1px solid #f5f5f5;
    /* Optional separator */
}

.video-info .video-title-client {
    font-size: 2.5em;
    /* Large font size for the title */
    font-weight: normal;
    /* Normal weight */
    color: #333;
    flex-grow: 1;
    /* Allow it to take available space */
    text-align: left;
}

.video-info .video-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align meta text to the right */
    font-size: 0.9em;
    /* Smaller font size for meta info */
    color: #555;
    line-height: 1.3;
    /* Adjust line height for readability */
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-height: 300px; /* Limite per non farlo gigante */
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .video-container-wrapper {
        padding: 1rem;
        /* Adjust padding for smaller screens */
    }

    .video-container-wrapper h1 {
        font-size: 1.5rem;
        /* Smaller heading on small screens */
        margin-bottom: 1rem;
    }

    .video-container-wrapper p {
        font-size: 0.9rem;
        /* Smaller text on small screens */
        margin-top: 1rem;
    }
}

/* OLD CODES */

.home-frog {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
}
.home-frog img {
  width: 250px;
}
@media all and (max-width: 780px) {
  .home-frog {
    display: none;
  }
}

#svg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
}

#polyline {
  z-index: 1000;
  stroke-dasharray: 0;
  stroke-width: 3;
  stroke-linecap: square;
  stroke: #0000ff;
}

@media only screen and (max-width: 600px) {
  #polyline {
    display: none;
  }
}

/* FRASI A SCORRIMENTO */
.phrases {
  width: 100vw;
  position: fixed;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  color: #0000ff;
}

@media all and (max-width: 779px) {
  .phrases {
    display: none;
  }
}

.phrase {
  font-family: RobotoMono;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  animation: leftToRight 20s linear;
}

@keyframes leftToRight {
  0%   { transform: translateX(-100vw); }
  100% { transform: translateX(100vw); }
}


body.no-scroll {
    overflow: hidden;
}
