/*
Theme Name: Italia Fitness
Theme URI: https://example.com
Author: Italia Fitness
Author URI: https://example.com
Description: Tema minimal ed elegante per un sito vetrina moda/fitness.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Text Domain: italiafitness
*/

/* RESET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.4;
  padding-top: 170px; /* spazio sotto l’header sticky + logo grande */
}

/* HEADER — LOGO CENTRATO + STICKY */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #f1f1f1;
}

.site-logo {
  height: 120px; /* logo grande come richiesto */
  width: auto;
}

/* HERO TITLE (se usato) */
.hero-title {
  font-size: 50px;
  font-weight: 900;
  padding: 60px 20px 20px 20px;
  text-transform: uppercase;
  line-height: 0.9;
  text-align: center;
}

/* GRIGLIA UNIFORME PRODOTTI */
.gallery-uniform {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.gallery-uniform .item {
  width: 100%;
  aspect-ratio: 3/4; /* verticale elegante fashion */
  overflow: hidden;
  border-radius: 6px;
  background: #f4f4f4;
}

.gallery-uniform .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s;
}

.gallery-uniform .item img:hover {
  transform: scale(1.04);
  opacity: 0.85;
}

/* FOOTER CON CONTATTI */
footer {
  padding: 40px;
  text-align: center;
  color: #555;
  border-top: 1px solid #f1f1f1;
}

footer a {
  color: #000;
  text-decoration: none;
}

footer a:hover {
  opacity: 0.8;
}

/* LIGHTBOX RESPONSIVE */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.90);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 0 10px;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  background: #000;
}

/* Bottone chiudi */
.lightbox-overlay::after {
  content: "✕";
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
