/* ===========================
   TSERVICE EVENTI — style.css
   =========================== */

:root {
  --yellow:   #f5d000;
  --black:    #0a0a0a;
  --dark:     #111111;
  --dark2:    #141414;
  --dark3:    #1a1a1a;
  --border:   #1e1e1e;
  --text:     #ffffff;
  --muted:    #b0b0b0;
  --muted2:   #7a7a7a;
  --ig-grad:  linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  --radius:   10px;
  --font:     system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--black); color: var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 500; line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 500; line-height: 1.22; }
h3 { font-size: 1.05rem; font-weight: 500; }
p  { font-size: 0.95rem; line-height: 1.85; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-tag { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--yellow); text-transform: uppercase; margin-bottom: 10px; }
.section-title { color: var(--text); margin-bottom: 18px; }
.section-body { color: var(--muted); max-width: 560px; font-size: 1rem; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 58px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo span { font-size: 0.95rem; font-weight: 400; color: var(--text); letter-spacing: 0.04em; }
.nav-logo strong { font-weight: 600; color: var(--yellow); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.ig-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--ig-grad);
  color: #fff; font-size: 0.75rem; font-weight: 500;
  padding: 7px 14px; border-radius: 6px; text-decoration: none;
  transition: opacity .2s;
}
.ig-btn:hover { opacity: .85; }
.ig-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary {
  display: inline-block;
  background: var(--yellow); color: var(--black);
  font-size: 0.8rem; font-weight: 600;
  padding: 9px 18px; border-radius: 6px;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }

.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--text);
  font-size: 0.8rem; padding: 9px 18px;
  border-radius: 6px; border: 1px solid #333;
  text-decoration: none; cursor: pointer;
  transition: border-color .2s;
}
.btn-secondary:hover { border-color: #555; }

.btn-dark {
  display: inline-block;
  background: var(--black); color: var(--text);
  font-size: 0.8rem; font-weight: 500; padding: 10px 20px;
  border-radius: 6px; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: var(--dark); border-bottom: 1px solid var(--border);
  position: fixed; top: 58px; left: 0; right: 0; z-index: 99;
}
.mobile-menu a { padding: 14px 32px; font-size: 0.9rem; color: var(--muted); border-bottom: 1px solid var(--border); text-decoration: none; }
body.menu-open .mobile-menu { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative; height: clamp(420px, 75vh, 720px);
  background: var(--dark); overflow: hidden;
  display: flex; align-items: center;
}
.hero-img {
  position: absolute; inset: 0;
  background: url('../../wp-content/uploads/2024/07/IMG_4013-scaled.jpeg') center/cover;
  opacity: .45;
}
.hero-diagonal {
  position: absolute; top: 0; right: 0; width: 44%; height: 100%;
  background: var(--yellow);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 clamp(32px, 6vw, 80px); max-width: 580px; }
.hero-tag { font-size: 0.74rem; letter-spacing: .14em; color: var(--yellow); text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.hero-title { color: var(--text); margin-bottom: 20px; }
.hero-title em { color: var(--yellow); font-style: normal; }
.hero-sub { color: #c0c0c0; margin-bottom: 32px; max-width: 400px; font-size: 1.05rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-right {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44%;
  z-index: 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-word {
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500;
  color: var(--black); letter-spacing: .08em; text-transform: uppercase;
  opacity: .5; transition: opacity .4s, font-size .4s;
}
.hero-word.active { font-size: clamp(2rem, 4vw, 3rem); opacity: 1; }

/* ---- STATS ---- */
.stats-bar {
  background: var(--dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: 32px 32px; flex-wrap: wrap; gap: 16px;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 600; color: var(--yellow); }
.stat-label { display: block; font-size: 0.78rem; color: var(--muted2); margin-top: 3px; }

/* ---- CHI SIAMO ---- */
.section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 88px clamp(32px,6vw,80px);
  max-width: 1200px; margin: 0 auto;
}
.section-img img { border-radius: var(--radius); width: 100%; height: 420px; object-fit: cover; filter: brightness(.9); }

/* ---- SERVIZI ---- */
.servizi { background: #0d0d0d; padding: 88px 0; }
.servizi .container {}
.servizi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.servizio-card {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color .2s;
}
.servizio-card:hover { border-color: #333; }
.servizio-accent { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--yellow); }
.servizio-title { color: var(--text); margin-bottom: 12px; font-size: 1.1rem; }
.servizio-text { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }
.servizio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.servizio-tags span { font-size: 0.72rem; background: var(--dark3); color: #888; padding: 4px 10px; border-radius: 4px; }

/* ---- LAVORI ---- */
.lavori { padding: 88px 0; }
.lavori-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.lavori-all-link { font-size: 0.84rem; color: var(--yellow); text-decoration: none; }
.lavori-all-link:hover { text-decoration: underline; }
.lavori-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.lavoro-card { background: var(--dark); border: 1px solid var(--dark3); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.lavoro-card:hover { border-color: #2a2a2a; }
.lavoro-img-wrap { display: block; position: relative; height: 220px; overflow: hidden; text-decoration: none; }
.lavoro-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lavoro-card:hover .lavoro-img-wrap img { transform: scale(1.04); }
.lavoro-no-img { width: 100%; height: 100%; background: var(--dark2); }
.lavoro-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px;
  border-radius: 4px; background: var(--yellow); color: var(--black);
}
.lavoro-ig-dot {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--ig-grad);
  display: flex; align-items: center; justify-content: center;
}
.lavoro-ig-dot svg { width: 14px; height: 14px; }
.lavoro-body { padding: 18px; }
.lavoro-date { display: block; font-size: 0.74rem; color: #555; margin-bottom: 6px; }
.lavoro-title { font-size: 0.95rem; font-weight: 500; color: #e0e0e0; margin-bottom: 7px; }
.lavoro-title a { text-decoration: none; color: inherit; }
.lavoro-title a:hover { color: var(--yellow); }
.lavoro-desc { font-size: 0.85rem; color: var(--muted2); line-height: 1.65; }

/* Pagina archivio lavori */
.lavori-archivio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 32px; }

/* ---- IG BANNER ---- */
.ig-banner {
  margin: 0 32px 56px;
  background: var(--dark); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.ig-banner-left { display: flex; align-items: center; gap: 14px; }
.ig-avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ig-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ig-avatar-circle svg { width: 20px; height: 20px; }
.ig-handle { font-size: 1rem; font-weight: 500; color: var(--text); }
.ig-sub { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.ig-follow-btn {
  background: var(--ig-grad); color: #fff;
  font-size: 0.78rem; font-weight: 500;
  padding: 10px 22px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.ig-follow-btn:hover { opacity: .85; }

/* ---- GALLERY STRIP ---- */
.gallery-strip { display: flex; gap: 3px; height: 220px; }
.gallery-item { flex: 1; background: center/cover no-repeat; filter: grayscale(20%); transition: flex .4s ease, filter .3s; cursor: pointer; }
.gallery-item:hover { flex: 2.5; filter: grayscale(0%); }

/* ---- CONTATTI ---- */
.contatti {
  background: var(--yellow);
  padding: 72px clamp(32px,6vw,80px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contatti-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; color: var(--black); margin-bottom: 6px; }
.contatti-sub { font-size: 0.9rem; color: #444; }
.contatti-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contatti-info a { display: block; font-size: 0.92rem; color: var(--black); text-decoration: none; text-align: right; font-weight: 600; line-height: 2; }

/* ---- FOOTER ---- */
.footer {
  background: #060606; border-top: 1px solid var(--dark3);
  padding: 36px clamp(24px,5vw,56px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; align-items: start;
}
.footer-left p { font-size: 0.82rem; color: #666; line-height: 1.8; }
.footer-left a { color: #777; text-decoration: none; }
.footer-right { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-right a { font-size: 0.82rem; color: #666; text-decoration: none; }
.footer-right a:hover { color: var(--yellow); }
.footer-ig { display: flex; align-items: center; gap: 5px; }
.footer-ig-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ig-grad); flex-shrink: 0; }
.footer-copy { font-size: 0.74rem; color: #333; grid-column: 1 / -1; margin-top: 8px; }

/* ---- ADMIN ---- */
.admin-body { background: #0d0d0d; min-height: 100vh; }
.admin-nav {
  background: var(--black); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 52px;
}
.admin-nav-logo { font-size: 0.85rem; font-weight: 500; color: var(--yellow); }
.admin-nav-links { display: flex; gap: 20px; }
.admin-nav-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.admin-nav-links a:hover, .admin-nav-links a.active { color: var(--yellow); }
.admin-main { max-width: 900px; margin: 0 auto; padding: 32px 24px; }
.admin-title { font-size: 1.3rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.admin-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 28px; }

.admin-card {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.admin-card-title { font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: #0d0d0d; border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 9px 12px;
  font-size: 0.85rem; font-family: var(--font);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--yellow); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.evento-scheda { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr; gap: 48px; align-items: start; }
.evento-scheda__foto img { width: 100%; height: auto; border-radius: var(--radius); display: block; position: sticky; top: 24px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-admin-primary { background: var(--yellow); color: var(--black); font-size: 0.8rem; font-weight: 600; padding: 10px 22px; border-radius: 6px; border: none; cursor: pointer; }
.btn-admin-secondary { background: var(--dark2); color: var(--muted); font-size: 0.8rem; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; text-decoration: none; display: inline-block; }
.btn-admin-danger { background: #3a1010; color: #f87; font-size: 0.78rem; padding: 8px 14px; border-radius: 6px; border: 1px solid #5a1010; cursor: pointer; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.admin-table th { text-align: left; font-size: 0.68rem; color: var(--muted2); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--dark3); color: var(--muted); vertical-align: middle; }
.admin-table tr:hover td { background: var(--dark2); }
.admin-table td a { color: var(--yellow); text-decoration: none; }

.badge { display: inline-block; font-size: 0.65rem; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.badge-yellow { background: rgba(245,208,0,.15); color: var(--yellow); }
.badge-green  { background: rgba(50,200,80,.1); color: #4c8; }
.badge-gray   { background: var(--dark3); color: var(--muted2); }
.badge-ig     { background: rgba(131,58,180,.2); color: #c8a; }

.alert { padding: 12px 16px; border-radius: 6px; font-size: 0.8rem; margin-bottom: 16px; }
.alert-ok  { background: rgba(50,200,80,.1); color: #4c8; border: 1px solid rgba(50,200,80,.2); }
.alert-err { background: rgba(220,50,50,.1); color: #f87; border: 1px solid rgba(220,50,50,.2); }

/* Uploader preview */
.img-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: 6px; margin-top: 8px; }
.img-current { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.img-current img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }

/* ---- LOGIN ---- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--black); }
.login-box { background: var(--dark); border: 1px solid var(--border); border-radius: 14px; padding: 40px 36px; width: 100%; max-width: 360px; }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo span { font-size: 1.1rem; font-weight: 500; color: var(--yellow); }
.login-title { font-size: 0.9rem; color: var(--muted); text-align: center; margin-bottom: 24px; }

/* ---- PAGE HEADER ---- */
.page-hero {
  background: var(--dark); border-bottom: 1px solid var(--border);
  padding: 48px clamp(24px,5vw,56px) 36px;
}
.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--text); }
.page-hero p { color: var(--muted); margin-top: 6px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .hero-diagonal, .hero-right { display: none; }
  .hero-content { max-width: 100%; }
  .section { grid-template-columns: 1fr; }
  .section-img { display: none; }
  .servizi-grid { grid-template-columns: 1fr; }
  .lavori-grid { grid-template-columns: 1fr; }
  .lavori-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer { grid-template-columns: 1fr; }
  .footer-right { justify-content: flex-start; }
  .contatti { flex-direction: column; align-items: flex-start; }
  .contatti-info a { text-align: left; }
  .ig-banner { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .evento-scheda { grid-template-columns: 1fr; gap: 20px; }
  .evento-scheda__foto img { position: static; }
}
