/* ============================================================
   GROOVE HOUSE — Scuola di Batteria
   Dark Minimal | Black & White
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #0d0d0d;
  --bg-2:         #111111;
  --text:         #ffffff;
  --text-muted:   #888888;
  --accent:       #ffffff;
  --card-bg:      #ffffff;
  --card-text:    #0d0d0d;
  --border:       #242424;
  --nav-h:        72px;
  --font-head:    'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- NAVBAR ------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: border-color 0.3s;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-brand img {
  height: 46px;
  width: auto;
}

.navbar-name {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar-menu a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 4px;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--text);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO --------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}

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

.hero-logo {
  width: min(380px, 68vw);
  height: auto;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.12));
  animation: heroFade 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2.5s ease-in-out infinite;
}

.hero-scroll span {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll i {
  font-size: 0.85rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- ABOUT -------------------------------------------------- */
.about {
  padding: 7rem 2rem 6rem;
  max-width: 820px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 1rem;
}

.about p {
  color: #c0c0c0;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.6rem;
  font-weight: 300;
}

.about p:last-child {
  margin-bottom: 0;
}

.privacy-page h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
}

.privacy-page ul {
  color: #c0c0c0;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
  padding-left: 1.4rem;
  margin-bottom: 1.6rem;
}

.privacy-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- FEATURES / CARDS --------------------------------------- */
.features {
  background: var(--bg-2);
  padding: 5rem 2rem 6rem;
}

.features-container {
  max-width: 960px;
  margin: 0 auto;
}

.features-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.6rem;
}

.features-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 3rem;
}

/* 4-column grid trick: ogni card span 2, la 3ª è centrata */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.card {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 2.25rem 2rem;
  grid-column: span 2;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: scale(1.028);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22), 0 0 50px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.85);
}

/* Centra la terza card quando è sola nella riga */
.card:nth-child(3):last-child,
.card:nth-child(3):nth-last-child(1) {
  grid-column: 2 / 4;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: #eee;
  font-weight: 400;
}

/* punto.png come bullet */
.card-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url('../img/punto.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* --- CARDS CON VIDEO DI SFONDO (pagina Metodi) -------------- */
.card-video {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid #fff;
  padding: 2.25rem 2rem;
  grid-column: span 2;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-video:hover {
  transform: scale(1.028);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22), 0 0 50px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.85);
}

/* Centra la terza video-card se è sola */
.card-video:nth-child(3):last-child,
.card-video:nth-child(3):nth-last-child(1) {
  grid-column: 2 / 4;
}

.card-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.card-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.card-video-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.card-video .card-title {
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.card-video .card-text {
  margin-bottom: 0;
}

.card-video .card-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- PAGINE INTERNE (placeholder) -------------------------- */
.page-hero {
  height: 38vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  margin-top: var(--nav-h);
}

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s;
}

.gallery-item:hover {
  opacity: 0.8;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.gallery-placeholder i {
  font-size: 2rem;
}

.gallery-placeholder span {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Metodi */
.metodi-section {
  padding: 5rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.metodi-item {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.metodi-item:last-child {
  border-bottom: none;
}

.metodi-number {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.metodi-item-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.metodi-item p {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
  max-width: 680px;
}

/* Contatti */
.contact-section {
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-section p {
  color: #aaa;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input:not([type="checkbox"]),
.form-group textarea,
.form-group select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  cursor: pointer;
}

.privacy-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.privacy-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.privacy-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2px solid #0d0d0d;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.privacy-label a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0d0d0d;
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.25s, transform 0.25s;
  align-self: flex-start;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.contact-info {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #aaa;
  font-size: 0.9rem;
}

.contact-info-item i {
  color: var(--text);
  width: 20px;
  text-align: center;
}

/* --- FOOTER ------------------------------------------------- */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 1.5rem;
  height: 38px;
  width: auto;
  opacity: 0.7;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: color 0.25s, transform 0.25s;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.footer-socials a:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-3px);
}

.footer-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
  margin: 0 auto 1.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* --- FAQ ---------------------------------------------------- */
.faq-section {
  padding: 5rem 2rem 6rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 1.75rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.25s;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

details[open] > .faq-question {
  color: var(--text);
}

details[open] > .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.75rem;
}

.faq-answer p {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
  max-width: 680px;
}

.faq-answer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- RESPONSIVE --------------------------------------------- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .navbar-menu.open { display: flex; }

  .navbar-menu li { width: 100%; }

  .navbar-menu a {
    display: block;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
  }

  .navbar-menu a::after { display: none; }

  /* Cards: stack verticale su mobile */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card { grid-column: 1 / -1; }
  .card:nth-child(3):last-child { grid-column: 1 / -1; }
  .card-video { grid-column: 1 / -1; }
  .card-video:nth-child(3):last-child { grid-column: 1 / -1; }

  .about { padding: 4.5rem 1.5rem 3.5rem; }
  .features { padding: 3.5rem 1.25rem 4rem; }

  .page-hero {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
  }

  .contact-section,
  .metodi-section { padding: 3.5rem 1.5rem; }

  .gallery-grid { padding: 2.5rem 1rem; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 1.25rem; }
  .navbar-logo img { height: 38px; }
  .hero-logo { width: min(280px, 78vw); }
}
