/* ====================================================
RESET & BASE
==================================================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #0e0e0e;
  color: white;
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

/* ====================================================
ICON UI
==================================================== */
.menu-icon,
.back-icon {
  position: fixed;
  top: 24px;
  font-size: 22px;
  color: white;
  opacity: 0.8;
  cursor: pointer;
  z-index: 2000;
  text-decoration: none;
}

.menu-icon { right: 24px; }
.back-icon { left: 24px; }

/* ====================================================
HERO – HOME
==================================================== */
.hero {
  height: 100vh;
  background: center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* LOGO */
.hero-logo {
  width: 210px;
  max-width: 70vw;
  opacity: 0;
  transform: scale(1.3);
  filter: blur(6px);
  animation: logoIn 1.4s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes logoIn {
  40% { opacity: 1; filter: blur(0); }
  100% { opacity: 0.9; transform: scale(1); filter: blur(0); }
}

/* TITLE */
.hero-title {
  margin: 0;
  font-size: 3.2rem;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(8px);
  animation: titleIn 1s ease forwards;
  animation-delay: 0.4s;
}

@keyframes titleIn {
  to { opacity: 1; transform: translateY(0); }
}

/* SUBTITLE */
.hero-subtitle {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(6px);
  animation: subtitleIn 1s ease forwards;
  animation-delay: 0.6s;
}

@keyframes subtitleIn {
  to { opacity: 0.7; transform: translateY(0); }
}

/* MOBILE HERO */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-logo { width: 180px; }
}

/* ====================================================
SECTION TITLES
==================================================== */
.section-title,
.page-title {
  text-align: center;
  letter-spacing: 2px;
}

.section-title {
  font-size: 36px;
  margin: 120px 0 40px;
}

.page-title {
  font-size: 48px;
  margin: 80px 0 40px;
}

/* ====================================================
HOME – CATEGORIES (4 QUADRATI)
==================================================== */
.categories {
  max-width: 1400px;
  margin: 0 auto 120px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.category-box {
  aspect-ratio: 1 / 1;
  background: #2b2b2b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.category-box a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.category-box:hover {
  transform: scale(1.05);
}

.category-box a {
  color: white;
  font-size: 28px;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 900px) {
  .categories {
    grid-template-columns: 1fr;
  }
}



/* ====================================================
PHOTO GRID – IMMAGINI
==================================================== */
.photo-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.photo-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .photo-grid img {
    height: 360px;
  }
}

/* ====================================================
COPYRIGHT OVERLAY
==================================================== */
.img-copyright {
  position: relative;
}

.img-copyright::after {
  content: "© Marco Artaz";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* ====================================================
SIDE MENU
==================================================== */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  padding: 80px 28px;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1500;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.85;
}

.menu-main {
  margin-top: 18px;
  font-weight: 500;
}

.menu-sub {
  margin-left: 18px;
  font-size: 16px;
  opacity: 0.7;
}

/* ====================================================
FOOTER
==================================================== */
.site-footer {
  margin-top: 120px;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
}

.site-footer a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* ====================================================
COMBO SLIDER (SAFE)
==================================================== */
.compare-wrapper {
  position: relative;
  max-width: 1100px;
  aspect-ratio: 3 / 2;
  margin: 80px auto;
  overflow: hidden;
}

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.compare-img.color {
  clip-path: inset(0 50% 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  z-index: 5;
}


/* =========================
PHOTO – CATEGORIES GRID
========================= */

.categories-grid {
max-width: 1400px;
margin: 0 auto 120px;
padding: 40px 20px;

display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
}

.grid-link {
aspect-ratio: 1 / 1;
border-radius: 10px;

background-size: cover;
background-position: center;
background-repeat: no-repeat;

display: flex;
align-items: center;
justify-content: center;

text-decoration: none;
position: relative;
overflow: hidden;

transition: transform 0.3s ease;
}

.grid-link::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0,0,0,0.35);
z-index: 1;
}

.grid-link span {
position: relative;
z-index: 2;
color: white;
font-size: 28px;
font-weight: 600;
letter-spacing: 1px;
}

.grid-link:hover {
transform: scale(1.04);
}

/* MOBILE */
@media (max-width: 900px) {
.categories-grid {
grid-template-columns: 1fr;
}
}

/* ----------------------------------------------------
 SHORTS GRID – CLEAN CINEMATIC
---------------------------------------------------- */

.shorts-grid {
max-width: 1200px;
margin: 0 auto 120px;
padding: 40px 30px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 28px;
}

.short-item {
position: relative;
aspect-ratio: 9 / 16;
overflow: hidden;
border-radius: 12px;
background: #000;
cursor: pointer;
}

.short-item video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

/* FULLSCREEN ICON – minimal */
.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;

  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.fullscreen-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
  opacity: 0.75;
}

/* appare SOLO al hover del video */
.short-item:hover .fullscreen-btn {
  opacity: 1;
}



/* ====================================================
ABOUT – IMAGE + TEXT ALIGN
==================================================== */

.about-wrapper {
  max-width: 1100px;
  margin: 120px auto;
  padding: 0 40px;

  display: flex;
  gap: 80px;
  align-items: center; /* 🔥 centra verticalmente il testo rispetto all'immagine */
}

/* IMMAGINE */
.about-image {
  flex: 0 0 420px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* TESTO */
.about-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.85;
}

.about-text p {
  margin: 0 0 18px;
  text-align: justify;
  text-wrap: pretty;   /* righe più armoniche */
  hyphens: none;        /* ❌ niente perso-ne */
  word-break: normal;
  overflow-wrap: normal;
}


/* EMAIL */
.about-contact {
  margin-top: 28px;
}

.about-contact a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

/* ====================================================
FILE TRANSFER
==================================================== */

.transfer-hero {
min-height: 100vh;
padding: 40px 20px;

display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

text-align: center;
}

.transfer-hero h1 {
font-size: 48px;
letter-spacing: 2px;
margin: 0 0 18px;
}

.transfer-hero p {
max-width: 520px;
font-size: 16px;
line-height: 1.6;
opacity: 0.85;
margin: 0 0 32px;
}

/* BUTTON */
.transfer-button {
display: inline-block;
padding: 14px 34px;
margin-bottom: 28px;

border: 1px solid rgba(255,255,255,0.5);
border-radius: 40px;

color: white;
text-decoration: none;
font-size: 14px;
letter-spacing: 1px;

transition: all 0.3s ease;
}

.transfer-button:hover {
background: white;
color: black;
}

/* NOTE */
.transfer-note {
font-size: 14px;
opacity: 0.65;
}

.transfer-note strong {
font-weight: 500;
}

/* MOBILE */
@media (max-width: 768px) {
.transfer-hero h1 {
font-size: 36px;
}

.transfer-hero p {
font-size: 15px;
}
}

/* HOME – PHOTOS PREVIEW */
.category-photo {
  background-image: url("assets/img/home-photos.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.category-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  transition: background 0.4s ease;
  z-index: 1;
}

.category-photo span {
  position: relative;
  z-index: 2;
  font-size: 28px;
  letter-spacing: 1px;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-photo:hover::before {
  background: rgba(0,0,0,0.35);
}

.category-photo:hover span {
  opacity: 1;
  transform: translateY(-2px);
}



/* ====================================================
HOME – SHORTS (VIDEO PREVIEW ALWAYS VISIBLE)
==================================================== */

.shorts-box {
position: relative;
overflow: hidden;
background: #000;
}

.shorts-link {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
text-decoration: none;
}

/* video sempre visibile */
.shorts-preview {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.7);
z-index: 1;
}

/* testo sopra */
.shorts-label {
position: relative;
z-index: 2;
font-size: 28px;
letter-spacing: 1px;
color: white;
opacity: 0.9;
}

/* ====================================================
HOME – EVENTS (luce + caos controllato)
==================================================== */

.category-events {
  background-image: url("assets/img/home-events.jpg"); /* scegli tu l’immagine */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* overlay */
.category-events::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  transition: background 0.4s ease;
  z-index: 1;
}

/* testo */
.category-events span {
  position: relative;
  z-index: 2;
  font-size: 28px;
  letter-spacing: 1px;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* hover */
.category-events:hover::before {
  background: rgba(0,0,0,0.3);
}

.category-events:hover span {
  opacity: 1;
  transform: translateY(-2px);
}


/* ====================================================
HOME – ABOUT PREVIEW
==================================================== */

.category-about {
  background-image: url("assets/img/home-about.jpg"); /* 👈 stessa foto di About */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* overlay scuro */
.category-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  transition: background 0.4s ease;
  z-index: 1;
}

/* testo */
.category-about span {
  position: relative;
  z-index: 2;
  font-size: 28px;
  letter-spacing: 1px;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* hover */
.category-about:hover::before {
  background: rgba(0,0,0,0.35);
}

.category-about:hover span {
  opacity: 1;
  transform: translateY(-2px);
}
