@charset "utf-8";

/* ====================================================================
   STILI BASE IDENTICI A MIPRESENTO
   ==================================================================== */
body, caption, th {
    text-align: left;
}

*, blockquote, body, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, html, input, li, ol, p, pre, ul {
    margin: 0;
    padding: 0;
}

body, header, section {
    background-color: #11191f;
}

h1, h2 {
    font-style: normal;
}

address, caption, cite, code, h1, h2, h3, h4, h5, h6, pre, th {
    font-size: 1em;
    font-weight: 400;
    font-style: normal;
}

h3, p {
    font-size: 1.1em;
}

ol, ul {
    list-style: none;
}

fieldset, img {
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    color: #fff;
    overflow: auto;
    font-family: Arial;
}

header {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

section {
    padding: 1.5em;
    clear: both;
}

.container {
    height: auto !important;
    margin: 0 auto;
    overflow: hidden;
}

h1 {
    font-weight: 700;
    color: red;
    font-size: 2em;
    padding-bottom: .3em;
}

h2, h3, p {
    font-weight: 400;
    color: #ccc;
}

p {
    padding-bottom: .5em;
    line-height: 1.2;
}

a {
    color: #ccc;
    text-decoration: none;
}

a:hover {
    color: red;
    text-decoration: underline;
}

.centra_tutto { 
    text-align: left; 
    max-width: 100%; 
    margin: 0 0 30px 20px; 
}


/* ====================================================================
   STILI SPECIFICI PER INDICE E GRIGLIA GALLERIE
   ==================================================================== */
.text-content-wrapper {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 15px;
    height: fit-content;
}

.card-title {
    color: #FFD700;
    font-size: 1em; 
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); 
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.gallery-thumb {
    width: 100%;
    height: 150px; 
    object-fit: contain; 
    background-color: #000; 
    border-radius: 4px;
    display: block;
}

.text-content { 
    max-height: 450px; 
    overflow: hidden; 
    position: relative; 
    transition: max-height 0.5s ease; 
    color: #eee; 
    line-height: 1.6; 
    margin-bottom: 10px; 
}
.text-content.is-truncated::after { 
    content: ""; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 80px; 
    background: linear-gradient(transparent, #000); 
    pointer-events: none; 
}
.text-content.is-expanded { 
    max-height: 5000px; 
}

.nav-back { 
    color: #ff0; 
    text-decoration: none; 
    font-weight: bold; 
    margin: 20px 0; 
    display: inline-block; 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
}

.intro-desc { 
    margin-bottom: 20px; 
}

.grid-foto { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
    gap: 15px; 
    margin-top: 20px; 
}

.foto-card { 
    background: #111; 
    padding: 10px; 
    border: 1px solid #333; 
    cursor: pointer; 
    height: 180px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    transition: 0.3s; 
}

.foto-card img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    pointer-events: none; 
}


/* ====================================================================
   MODALE E CONTROLLI ZOOM / DOWNLOAD
   ==================================================================== */
#modal { 
    display: none; 
    position: fixed; 
    z-index: 999999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.98); 
    touch-action: none; 
}

#modalContainer { 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
}

#modalImg { 
    max-width: 95%; 
    max-height: 95%; 
    border: 1px solid #444; 
    display: block; 
    margin: auto;
    user-select: none; 
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
}

.chiudi-foto, .download-btn { 
    position: absolute; 
    top: 20px; 
    font-size: 24px; 
    font-weight: bold; 
    text-decoration: none; 
    z-index: 1002; 
    cursor: pointer; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 5px; 
    color: white;
}

.chiudi-foto { 
    right: 20px; 
    background-color: #ff4d4d; 
    font-family: Arial; 
    text-shadow: 0 0 10px #000;
}

.download-btn { 
    right: 70px; 
    background-color: #28a745; 
}

.chiudi-foto:hover { 
    background-color: #cc0000; 
}

.download-btn:hover { 
    background-color: #1e7e34; 
}

.arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: white; 
    font-size: 50px; 
    cursor: pointer; 
    padding: 15px; 
    z-index: 1000000; 
    background: rgba(0,0,0,0.3); 
    border-radius: 5px; 
}

.arrow.disabled { 
    opacity: 0.1; 
    pointer-events: none; 
}

.prev { 
    left: 10px; 
}

.next { 
    right: 10px; 
}

.zoom-info { 
    position: absolute; 
    bottom: 15px; 
    left: 50%; 
    transform: translateX(-50%); 
    color: #888; 
    font-size: 11px; 
    font-family: sans-serif; 
    pointer-events: none; 
    text-align: center; 
    width: 100%; 
}


/* ====================================================================
   MEDIA QUERY POSIZIONAMENTO LOGO (COPIATE DIRETTAMENTE DA MIPRESENTO)
   ==================================================================== */

/* --- Smartphone (0px - 480px) --- */
@media only screen and (min-width:0px) and (max-width:480px){
    h2, h3 { color: #ccc; }
    .logo, .testo_logo { position: absolute; left: 15%; z-index: 10; }
    .centro, .sx { margin: 0 auto; }
    #menuDemo, .sx, h3 { text-align: left; }
    .dx, .sx { float: none; }
    body { font: .85em/1.35 Arial, "sans-serif"; letter-spacing: .06em; }
    #menuDemo { position: fixed; left: 2%; top: 3vw; z-index: 999999990; }
    h1 { font-size: 1.5em; padding-bottom: .3em; }
    .logo { width: 40%; top: 8vw; }
    .testo_logo { font-size: 5vw; top: 26vw; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; }
    .centro, .dx, .sx { position: relative; }
    .centro { width: 100%; }
}

/* --- Tablet (481px - 800px) --- */
@media only screen and (min-width:481px) and (max-width:800px){
    #menuDemo, h3 { text-align: left; }
    .logo, .testo_logo { position: absolute; }
    body { font: .8em/1.25 Arial, "sans-serif"; letter-spacing: .06em; }
    #menuDemo { position: fixed; left: 2%; top: 3vw; z-index: 999999990; }
    .container { max-width: 100%; min-width: 481px; }
    .logo { width: 28%; top: 6vw; left: 13%; z-index: 10; }
    .testo_logo { font-size: 3.8vw; top: 10vw; right: 5vw; z-index: 10; font-family: Arial; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; }
}

/* --- Laptop (801px - 1280px) --- */
@media only screen and (min-width:801px) and (max-width:1280px){
    #menuDemo { position: fixed; left: 2%; top: 3vw; z-index: 999999990; }
    .container { max-width: 100%; min-width: 801px; }
    .logo { position: absolute; width: 30%; top: .3vw; left: 9%; z-index: 10; }
    .testo_logo { position: absolute; font-size: 4vw; top: 5vw; right: 4vw; z-index: 10; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; }
}

/* --- Desktop (oltre 1281px) --- */
@media only screen and (min-width: 1281px){
    #menuDemo { position: fixed; left: 2%; top: 2%; z-index: 999999990; }
    .container { max-width: 100%; min-width: 1281px; }
    .logo { position: absolute; width: 30%; top: .5vw; left: 8%; z-index: 10; }
    .testo_logo { position: absolute; font-size: 3vw; top: 6vw; right: 5vw; z-index: 10; color: #fff; text-shadow: -2px 0 #000, 0 2px #000, 2px 0 #000, 0 -2px #000; }
}