﻿/* ==========================================
   RESET & STILI GENERALI media 393
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
	
	background-image: url('img/sfondochiaro.jpg'); /* Inserisci il nome reale del file */
    background-repeat: repeat;                    /* Ripete l'immagine in orizzontale e verticale */
    background-attachment: scroll;  
}

/* ==========================================
   STRISCIA SUPERIORE (DISATTIVATA)
   ========================================== */
.logotelmail {position:fixed;bottom:1px;right:1px;width:70px;}
.logotelmail:hover {position:fixed;bottom:1px;right:1px;width:90px;transform: scale(1.2);}
.topbar-title {
    display: none !important;
}

/* ==========================================
   HEADER SCURO & MENU DI NAVIGAZIONE
   ========================================== */
header {
    background-color: #1a1a1a;
    color: #fff;
    position: sticky;
    top: 0;
	background-image: url('img/sfondoscuro.jpg'); /* Inserisci il nome reale del file */
    background-repeat: repeat;                    /* Ripete l'immagine in orizzontale e verticale */
    background-attachment: scroll; 
    z-index: 1000;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.9);
}

.header-container {
    max-width: 100%;
    margin: 0;
    padding: 0.4rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TITOLO BRAND: PIÙ A SINISTRA E PIÙ VICINO AL BORDO IN ALTO */
.header-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-left: 85px;  /* Spostato più a sinistra */
    margin-top: -6px;    /* Vicino al bordo superiore */
}

/* LOGO FISSO IN ALTO A SINISTRA */
.logo {
    position: fixed;
    bottom: 25px;
    right: 5px;
    height: 80px;
    width: auto;
    z-index: 1010;
    transition: transform 0.3s ease;
}

.header-title {
	position: fixed;
	top: -2px;
	left: 90px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff0;
	    z-index: 1020;
    white-space: nowrap;
}

.pittore-italics {
    font-style: italic;
    font-size: 1.1rem;
    color: #99f;
}

/* --- NAVIGAZIONE DESKTOP (ABBASSATA) --- */
nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
    margin-top: 10px; /* Abbassa i link del menu */
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 1000;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e0a96d;
}

.menu-toggle {
    display: none !important;
}

/* ==========================================
   SEZIONI & GRIGLIA GALLERIA
   ========================================== */
section {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 80px;
}

.hero-section {
    padding-top: 2rem;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	
	
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-content p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: justify;
}

.btn-hero {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-hero:hover {
    background-color: #e0a96d;
}

h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #e0a96d;
    display: inline-block;
    padding-bottom: 5px;
    color: #1a1a1a;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: rgba(0, 0, 0, 0.75); /* Sfondo scuro per contrasto */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    text-align: left;
	
	
	
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 10px; /* Distanza dal testo bianco */
}

.gallery-item img:hover {
    transform: scale(1.4);
}

.gallery-title {
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.gallery-descrizione {
	color:#ff0;
    font-size: 0.7rem;
}

.quadro-descrizione {
    margin-top: 8px;
    font-style: italic;
    font-size: 0.85rem;
}

.sectionbio p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================
   FORM CONTATTI
   ========================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin-top: 15px;
}

form label {
    font-weight: bold;
    font-size: 0.95rem;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

form button {
    padding: 12px;
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #e0a96d;
}

/* ==========================================
   MODALE ED ELEMENTI EXTRA
   ========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-container {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 80%;
    text-align: center;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.modal-content.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

.prev, .next {
    cursor: pointer;
    position: fixed;
    bottom: -50px;
    transform: translateY(-50%);
    padding: 16px;
    color: #ffffff;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2010;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(224, 169, 109, 0.8);
    color: #000;
}

.close {
    position: fixed;
    bottom: -10px;
    right: 50%;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

footer {
	position:fixed;
	bottom:0px;
	width:100%;
    background: #005;	
	
	background-image: url('imgsito/sfondoscuro.jpg'); /* Inserisci il nome reale del file */
    background-repeat: repeat;                    /* Ripete l'immagine in orizzontale e verticale */
    background-attachment: scroll; 
	
	font-size:0.7rem;
    text-align: center;
    padding: 0.0rem;

    color: #fff;
    margin-top: 2rem;
}

/* ==========================================
   DISPOSITIVI MOBILI
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding-left: 0.5rem;
    }

    .logo {
        height: 35px;
        top: 80px;
        left: 5px;
    }

    .header-brand a {
        margin-left: 70px;
        margin-top: 0;
    }

    .header-title {
        font-size: 0.95rem;
    }

    .pittore-italics {
        font-size: 0.85rem;
    }

    nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        position: static;
        background-color: transparent;
        padding: 10px 0 0 0;
        box-shadow: none;
        margin-top: 0;
    }

    nav a {
        padding: 4px 8px;
        font-size: 0.9rem;
        width: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   CORREZIONE COMPLETA TESTI (GALLERIA E MODALE)
   ========================================== */

/* Forza colore bianco puro e ombra di base su tutti gli elementi informativi */
.gallery-item .gallery-title,
.gallery-item .gallery-descrizione,
.gallery-item .quadro-descrizione,
.gallery-info h3,
.gallery-info p,
.gallery-info .opera-desc,
#caption,
#caption * {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* GESTIONE PESO DEL TESTO (BOLD vs NORMAL) */
/* Titoli in grassetto */
.gallery-item .gallery-title,
.gallery-info h3,
#caption strong, 
#caption b,
#caption h3 {
    font-weight: bold !important;
}

/* Descrizioni in testo normale */
.gallery-item .gallery-descrizione,
.gallery-item .quadro-descrizione,
.gallery-info p,
.gallery-info .opera-desc,
#caption {
    font-weight: normal !important;
}

/* Layout per la didascalia nel modale singolo */
#caption {
    margin-top: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Box contenitore scuro per le schede della galleria */
.gallery-item, 
.gallery-info {
    background: rgba(0, 0, 0, 0.75) !important;
    padding: 15px;
    border-radius: 8px;
}

/* ==========================================
   ANIMAZIONE FLUIDA AL CAMBIO IMMAGINE MODALE
   ========================================== */
@keyframes fadeEffect {
    from {
        opacity: 0.2;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-animation {
    animation: fadeEffect 0.35s ease-out !important;
}

/* ==========================================
   SEZIONE: EVENTI E MOSTRE
   ========================================== */
.event-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.event-image {
    flex: 1;
}

.event-image img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-content {
    flex: 1.5;
}

.event-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.event-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ==========================================
   SEZIONE: BIOGRAFIA CON FOTO AFFIANCATA
   ========================================== */
.bio-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 20px;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	margin-top: 15px;width: 100%;}
.bio-image {flex: 0 0 35% !important; /* Blocca la larghezza del riquadro foto al 35% */
	max-width: 25%;}
.bio-image img {
	width: 100% !important;
	height: auto !important;
	max-height: 450px;object-fit: contain !important; /* Mantiene la foto proporzionata e intatta */
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: block;}
.bio-content {flex: 1;text-align:justify;}/* Adattamento responsive globale (Smartphone) */
@media (max-width: 768px) {
	.event-container,.bio-container {flex-direction: column !important;
	text-align: center;
	padding: 20px;}
.bio-image {flex: 1 !important;
	max-width: 100% !important;
	margin-bottom: 15px;}
.event-image img,
.bio-image img {max-height: 280px;}}
/* FIX VISIBILITA HOME - MOBILE */
#hero-title, #hero-desc, #hero-btn {
  display: block!important;
  opacity: 1!important;
  visibility: visible!important;
}
#hero-desc {
  color: #333!important;
  min-height: 60px;
}
.hero-content {
  min-width: 0;
}
