/*
Theme Name: Giulia Ballarè
Theme URI: https://giuliaballare.com
Author: chiarè
Description: Tema custom per il sito di Giulia Ballarè, chitarrista classica. Design editoriale elegante, ricostruito a partire dai contenuti del sito Wix originale. Compatibile con WooCommerce.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giulia-ballare
*/

/* ===================== VARIABILI ===================== */
:root {
  --gb-dark: #14110F;
  --gb-charcoal: #221E1A;
  --gb-cream: #F7F4EE;
  --gb-cream-2: #EFEAE0;
  --gb-text: #221E1A;
  --gb-muted: #6B6459;
  --gb-gold: #B08D57;
  --gb-gold-light: #D8C39C;
  --gb-border: #E1DACB;
  --gb-max: 1180px;
  --gb-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --gb-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ===================== RESET DI BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gb-sans);
  color: var(--gb-text);
  background: var(--gb-cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--gb-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--gb-dark);
}
p { margin: 0 0 1.2em; }
.gb-container { max-width: var(--gb-max); margin: 0 auto; padding: 0 32px; }

/* ===================== HEADER / NAV ===================== */
.gb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20,17,15,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gb-header-inner {
  max-width: var(--gb-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gb-logo {
  font-family: var(--gb-serif);
  color: #fff;
  font-size: 22px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.gb-logo span { color: var(--gb-gold-light); }
.gb-nav { display: flex; }
.gb-nav ul { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.gb-nav a {
  color: #EDE8DD;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.gb-nav a:hover, .gb-nav .current-menu-item > a { color: var(--gb-gold-light); }
.gb-nav .sub-menu { display: none; }
.gb-header-tools { display: flex; align-items: center; gap: 22px; }
.gb-social-mini { display: flex; gap: 14px; }
.gb-social-mini img { width: 16px; height: 16px; filter: invert(1) brightness(1.6); opacity: .85; }

/* Selettore lingua */
.gb-lang-switch { display: flex; align-items: center; gap: 8px; }
.gb-lang-switch a {
  font-size: 12px;
  letter-spacing: .08em;
  color: #A69C8A;
  transition: color .2s ease;
}
.gb-lang-switch a:not(:last-child)::after { content: "/"; margin-left: 8px; color: #4A443A; }
.gb-lang-switch a:hover { color: #fff; }
.gb-lang-switch a.gb-lang-current { color: var(--gb-gold-light); font-weight: 600; }

/* Icona carrello */
.gb-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: #EDE8DD;
  transition: color .2s ease;
}
.gb-cart-link:hover { color: var(--gb-gold-light); }
.gb-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--gb-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.gb-menu-toggle { display: none; }

/* ===================== HERO ===================== */
.gb-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.gb-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,.35) 0%, rgba(20,17,15,.55) 55%, rgba(20,17,15,.92) 100%);
}
.gb-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px 64px;
  max-width: var(--gb-max);
  margin: 0 auto;
  width: 100%;
}
.gb-eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 12px;
  color: var(--gb-gold-light);
  margin-bottom: 18px;
}
.gb-hero h1 {
  color: #fff;
  font-size: clamp(42px, 7vw, 84px);
  margin: 0;
}
.gb-hero h1 em { font-style: italic; color: var(--gb-gold-light); }
.gb-hero-sub {
  margin-top: 18px;
  max-width: 560px;
  color: #EDE8DD;
  font-size: 18px;
}
.gb-page-hero {
  background-size: cover;
  background-position: center;
  min-height: 42vh;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
}
.gb-page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,17,15,.6);
}
.gb-page-hero .gb-hero-content { padding: 90px 32px 40px; }
.gb-page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); }

/* ===================== SEZIONI ===================== */
.gb-section { padding: 84px 0; }
.gb-section--tight { padding: 48px 0; }
.gb-section--dark { background: var(--gb-dark); color: #EDE8DD; }
.gb-section--dark h2, .gb-section--dark h3 { color: #fff; }
.gb-section--alt { background: var(--gb-cream-2); }
.gb-kicker {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 12px;
  color: var(--gb-gold);
  margin-bottom: 12px;
  display: block;
}
.gb-lede { font-size: 20px; color: var(--gb-muted); max-width: 720px; }
.gb-rule { width: 56px; height: 2px; background: var(--gb-gold); border: none; margin: 28px 0; }

/* ===================== GRID / COLONNE ===================== */
.gb-grid { display: grid; gap: 40px; }
.gb-grid--2 { grid-template-columns: 1fr 1fr; }
.gb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gb-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .gb-grid--2, .gb-grid--3, .gb-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .gb-grid--2, .gb-grid--3, .gb-grid--4 { grid-template-columns: 1fr; }
}

/* ===================== BOTTONI ===================== */
.gb-btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--gb-gold);
  color: var(--gb-dark);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 13px;
  transition: all .25s ease;
}
.gb-btn:hover { background: var(--gb-gold); color: #fff; }
.gb-btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.gb-btn--light:hover { background: #fff; color: var(--gb-dark); }
.gb-btn--solid { background: var(--gb-gold); color: #fff; border-color: var(--gb-gold); }
.gb-btn--solid:hover { background: var(--gb-dark); border-color: var(--gb-dark); }

/* ===================== QUOTE STAMPA ===================== */
.gb-quote {
  font-family: var(--gb-serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.5;
  color: var(--gb-dark);
  border-left: 3px solid var(--gb-gold);
  padding-left: 28px;
  margin: 0 0 8px;
}
.gb-quote-source { color: var(--gb-muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }

/* ===================== LISTE PREMI / REPERTORIO ===================== */
.gb-award-col h4 { color: var(--gb-gold); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin-bottom: 16px; }
.gb-award-col li { padding: 6px 0; border-bottom: 1px solid var(--gb-border); font-size: 15px; }
.gb-repertoire-era { margin-bottom: 28px; }
.gb-repertoire-era h5 { font-family: var(--gb-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--gb-gold); margin-bottom: 6px; }
.gb-composer { font-weight: 600; margin-top: 14px; }
.gb-works { color: var(--gb-muted); font-size: 15px; margin-bottom: 4px; }

/* ===================== VIDEO / MUSICA ===================== */
.gb-video-card { background: #fff; border: 1px solid var(--gb-border); }
.gb-video-embed { position: relative; padding-top: 56.25%; background: #000; }
.gb-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gb-video-card .gb-video-caption { padding: 20px 24px; }
.gb-video-caption h4 { margin-bottom: 4px; font-size: 18px; }
.gb-video-caption p { margin: 0; color: var(--gb-muted); font-size: 14px; }

/* ===================== TOUR ===================== */
.gb-tour-year { margin-bottom: 48px; }
.gb-tour-year h2 { border-bottom: 1px solid var(--gb-border); padding-bottom: 12px; margin-bottom: 20px; }
.gb-tour-item { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--gb-border); }
.gb-tour-date { color: var(--gb-gold); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.gb-tour-event a { text-decoration: underline; text-decoration-color: var(--gb-border); }
@media (max-width: 600px) { .gb-tour-item { grid-template-columns: 1fr; gap: 4px; } }

/* ===================== GALLERIA ===================== */
.gb-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gb-gallery-grid a { display: block; overflow: hidden; aspect-ratio: 4/5; }
.gb-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gb-gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .gb-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== LOGHI SPONSOR ===================== */
.gb-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.gb-logos img { max-height: 46px; width: auto; opacity: .9; }
.gb-logos--dark img { background: #fff; padding: 10px 18px; }

/* ===================== LEZIONI / CONTATTI ===================== */
.gb-lesson-card {
  background: #fff;
  border: 1px solid var(--gb-border);
  padding: 40px;
  text-align: center;
}
.gb-lesson-price { font-family: var(--gb-serif); font-size: 52px; color: var(--gb-gold); margin: 8px 0; }
.gb-lesson-card ul { text-align: left; max-width: 360px; margin: 24px auto; }
.gb-lesson-card ul li { padding: 8px 0; border-bottom: 1px solid var(--gb-border); font-size: 15px; }
.gb-lesson-card ul li::before { content: "— "; color: var(--gb-gold); }

.gb-form input[type=text], .gb-form input[type=email], .gb-form select, .gb-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gb-border);
  background: #fff;
  font-family: var(--gb-sans);
  font-size: 15px;
  margin-bottom: 16px;
}
.gb-form label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--gb-muted); margin-bottom: 6px; }
.gb-form .gb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .gb-form .gb-form-row { grid-template-columns: 1fr; } }
.gb-form-note { font-size: 13px; color: var(--gb-muted); margin-top: 10px; }

.gb-contact-list { margin-top: 20px; }
.gb-contact-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.gb-contact-list img { width: 22px; height: 22px; }

/* ===================== FOOTER ===================== */
.gb-footer { background: var(--gb-dark); color: #B9B2A4; padding: 56px 0 28px; }
.gb-footer .gb-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: center; }
.gb-footer-social { display: flex; gap: 18px; }
.gb-footer-social img { width: 18px; height: 18px; filter: invert(1) brightness(1.7); opacity: .8; }
.gb-footer-social img:hover { opacity: 1; }
.gb-footer-bottom { text-align: center; font-size: 13px; color: #766F62; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

/* ===================== UTILITY ===================== */
.gb-center { text-align: center; }
.gb-mt-0 { margin-top: 0; }
.gb-narrow { max-width: 780px; margin: 0 auto; }

/* ===================== WOOCOMMERCE (base) ===================== */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; }
.woocommerce ul.products li.product { text-align: center; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
  background: var(--gb-gold); color: #fff; border-radius: 0; padding: 12px 26px;
  text-transform: uppercase; letter-spacing: .1em; font-size: 13px; border: none;
}
.woocommerce a.button:hover { background: var(--gb-dark); }
.woocommerce span.price { color: var(--gb-gold); font-weight: 600; }

/* ===================== MOBILE NAV ===================== */
@media (max-width: 880px) {
  .gb-nav ul { gap: 16px; }
  .gb-nav a { font-size: 12px; }
}
@media (max-width: 700px) {
  .gb-nav { display: none; }
  .gb-header-inner { padding: 16px 20px; }
  .gb-section { padding: 56px 0; }
  .gb-container { padding: 0 20px; }
}
