:root {
  --bg: #0a0a0a;
  --panel: #111;
  --text: #eaeaea;
  --muted: #9aa0a6;
  --accent: #11d114;
  --accent-weak: #00e67622;
}

/* Reset & base */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-align: center;
}

/* Body spacing for fixed navbar */
body {
  padding-top: 72px;
}

/* Tipografia */
h1 {
  color: var(--accent);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #000;
  border-bottom: 1px solid #111;
  padding: 14px 0;
  text-align: center;
}

.nav-link {
  display: inline-block;
  margin: 0 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-weak);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 700;
}

/* Layout generico */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.page-header {
  text-align: center;
  margin: 8px 0 18px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px var(--accent-weak);
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

/* === Home: due card/bottoni con foto === */

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.home-card {
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid #1a1a1a;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  height: 100%;
}

.home-card-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .25s ease, filter .25s ease;
}

.home-card-body {
  padding: 14px 16px 18px;
  text-align: left;
}

.home-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--accent);
}

.home-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(0,0,0,0.7), 0 0 18px var(--accent-weak);
  transform: translateY(-3px);
}

.home-card:hover .home-card-image {
  transform: scale(1.04);
  filter: saturate(1.18) contrast(1.1);
}

/* === Gallery === */

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shot {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a1a1a;
  position: relative;
  transition: box-shadow 0.25s ease,
              transform 0.25s ease,
              border-color 0.25s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--accent-weak);
  border-radius: 8px;
  color: var(--text);
  backdrop-filter: blur(2px);
}

.shot:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-weak),
    0 10px 24px #000,
    0 0 24px var(--accent-weak);
  transform: translateY(-2px);
}

.shot:hover img {
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.1);
}

.shot:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === About page === */

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start; /* testo allineato in alto alla foto */
}

/* Foto */
.about-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(1.05) contrast(1.05);
}

.about-photo:hover img {
  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.1);
}

/* Testo */
.about-text {
  text-align: left;
}

.about-text h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.about-text p {
  margin: 0 0 12px;
  color: var(--text);
}

/* Pulsante generico (usato anche per Instagram / ancora) */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.25s ease,
              transform 0.2s ease,
              filter 0.2s ease;
}

.btn:hover {
  background: var(--accent-weak);
  transform: translateY(-1px);
}

/* === Form richiesta contatti (About) === */

.contact-access-form {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra orizzontalmente il contenuto interno */
}

.form-row {
  width: 100%;
  margin-bottom: 12px;
}

.contact-access-form input,
.contact-access-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #1a1a1a;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease,
              background 0.2s ease;
}

.contact-access-form input:focus,
.contact-access-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-weak),
              0 6px 16px #000;
}

/* Bottone form centrato */
.contact-access-form button {
  display: block;
  margin: 20px auto 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  color: var(--text);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease,
              transform 0.2s ease;
}

.contact-access-form button:hover {
  background: var(--accent-weak);
  transform: translateY(-1px);
}

.form-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Animazioni ingresso About */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.about-photo,
.about-text {
  animation: fade-up 0.5s ease both;
}

.about-text {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  .about-photo,
  .about-text {
    animation: none !important;
    transition: none !important;
  }
}

/* === Responsive === */

@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }
  .about-text {
    margin-top: 6px;
  }
}

@media (max-width: 700px) {
  .home-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-link {
    margin: 0 10px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
/* === Banner "Sito in costruzione" === */
.banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  border-top: 1px solid var(--accent);
  color: var(--text);
  text-align: center;
  padding: 12px 50px 12px 20px;
  font-size: 0.95rem;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.5s ease both;
}

.banner p {
  margin: 0;
  line-height: 1.4;
}

.banner button {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.banner button:hover {
  color: #00ff6a;
  transform: scale(1.1);
}

/* Effetto ingresso */
@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
