/*
Theme Name: Avarellosono
Template: twentytwentyfive
Description: Tema personalizzato per avarellosono.it
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;1,300&display=swap');

:root {
  --black: #181818;
  --white: #E8E4DC;
  --accent: #c8f542;
  --muted: #2e2e2e;
  --text-muted: #aaa;
}

/* MODALITA CHIARA */
body.light-mode {
  --black: #F2EDE4;
  --white: #1a1a1a;
  --accent: #6B3FA0;
  --muted: #D0C8BC;
  --text-muted: #555;
}

body.light-mode .avr-nav-links a {
  color: #1a1a1a !important;
  opacity: 0.8 !important;
}

body.light-mode .avr-nav-links a:hover {
  opacity: 1 !important;
}

body.light-mode .avr-nav-logo {
  color: #1a1a1a !important;
}

body.light-mode .avr-theme-toggle {
  color: #1a1a1a !important;
  border-color: #C0B8B0 !important;
}

body.light-mode .avr-content,
body.light-mode .avr-content p,
body.light-mode .avr-content ul,
body.light-mode .avr-content ol {
  color: #333 !important;
}

body.light-mode .avr-post-card,
body.light-mode .avr-comment-bubble {
  background: #fff !important;
}

body.light-mode .wpforms-form .wpforms-field input,
body.light-mode .wpforms-form .wpforms-field textarea {
  background: #fff !important;
  background-color: #fff !important;
}

body.light-mode .wp-block-media-text .wp-block-media-text__content,
body.light-mode .wp-block-media-text .wp-block-media-text__content p {
  color: #333 !important;
}

/* PULSANTE TEMA */
.avr-theme-toggle {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 100px;
  opacity: 0.7;
}

body.light-mode .avr-theme-toggle {
  border-color: var(--muted);
  color: var(--white);
}

.avr-theme-toggle:hover { opacity: 1; border-color: var(--accent); }

/* BASE */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 300 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Rimuovi stili WordPress */
.wp-site-blocks,
.wp-block-template-part,
.site-header,
.site-footer,
#wpadminbar + * { background: var(--black) !important; }

/* HEADER / NAV */
header, .site-header, .wp-block-template-part[data-type="header"] {
  display: none !important;
}

.avr-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: transparent;
}

.avr-nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}

.avr-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}

.avr-nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.avr-nav-links a:hover { opacity: 1; }

/* CONTENUTO ARTICOLO */
.avr-article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.avr-back {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.avr-back:hover { color: var(--accent); }

.avr-cat {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.avr-cat.musica   { color: #c8f542; }
.avr-cat.concerti { color: #f5a842; }
.avr-cat.pensieri { color: #a8c8f5; }
.avr-cat.merch    { color: #f5a8c8; }
.avr-cat.default  { color: #888; }

.avr-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 1.5rem;
}

.avr-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--muted);
}

/* CORPO ARTICOLO */
.avr-content {
  font-size: 1.15rem;
  line-height: 2;
  color: #ccc;
  font-weight: 400;
}

.avr-content p {
  margin-bottom: 1.5rem;
  color: #ccc;
  font-weight: 400;
}

.avr-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 2.5rem 0 1rem;
}

.avr-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 2rem 0 0.8rem;
}

.avr-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,245,66,0.3);
  transition: border-color 0.2s;
}

.avr-content a:hover { border-color: var(--accent); }

.avr-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
}

.avr-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.avr-content ul, .avr-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.avr-content li { margin-bottom: 0.4rem; }

/* FOOTER ARTICOLO */
.avr-footer {
  border-top: 1px solid var(--muted);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4rem;
}

.avr-footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}

/* PAGINA CATEGORIA */
.avr-cat-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 3rem 6rem;
}

.avr-cat-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--muted);
}

.avr-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.avr-post-card {
  background: var(--black);
  border: 1px solid var(--muted);
  padding: 2rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.25s;
}

.avr-post-card:hover { border-color: var(--accent); }
.avr-post-card:hover .avr-card-arrow { transform: translate(4px, -4px); }

.avr-card-date { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.6rem; }

.avr-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.avr-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; font-weight: 400; }

.avr-card-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.25s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .avr-nav { padding: 1.2rem 1.5rem; }
  .avr-nav-links { display: none; }
  .avr-article-wrap { padding: 6rem 1.5rem 4rem; }
  .avr-cat-wrap { padding: 6rem 1.5rem 4rem; }
  .avr-footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; }
}
/* BLOCCO MEDIA E TESTO */
.wp-block-media-text {
  background: transparent !important;
  color: var(--white) !important;
}

.wp-block-media-text .wp-block-media-text__content {
  color: #ccc !important;
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
  padding: 1rem 2rem !important;
}

.wp-block-media-text .wp-block-media-text__content p {
  color: #ccc !important;
}

.wp-block-media-text__media img {
  border-radius: 4px !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 768px) {
  .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }
  .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: 0 !important;
  }
}
/* FIX IMMAGINE CHE COPRE IL TESTO */
.wp-block-media-text {
  align-items: stretch !important;
  overflow: hidden !important;
}

.wp-block-media-text__media {
  overflow: hidden !important;
  align-self: stretch !important;
}

.wp-block-media-text__media img {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 500px !important;
  object-fit: cover !important;
  display: block !important;
}

.wp-block-media-text__media {
  position: relative !important;
  overflow: hidden !important;
  align-self: stretch !important;
  min-height: 200px !important;
}
/* FIX FORM CONTATTI */
.wpforms-form .wpforms-field input,
.wpforms-form .wpforms-field textarea,
.wpforms-form .wpforms-field select,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form textarea {
  background: #212121 !important;
  background-color: #212121 !important;
  border: 1px solid var(--muted) !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  padding: 1rem 1.2rem !important;
  width: 100% !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}

.wpforms-form .wpforms-field input::placeholder,
.wpforms-form .wpforms-field textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field textarea:focus {
  border-color: var(--accent) !important;
  background: #212121 !important;
  background-color: #212121 !important;
}

.wpforms-form .wpforms-submit-container button,
.wpforms-form button[type="submit"] {
  background: var(--accent) !important;
  background-color: var(--accent) !important;
  color: var(--black) !important;
  border: none !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.1em !important;
  padding: 0.9rem 2rem !important;
  cursor: pointer !important;
  border-radius: 0 !important;
}

.wpforms-field-label,
.wpforms-form label {
  color: var(--white) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* TESTI HOMEPAGE PIU LEGGIBILI */
.hero-sub {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  color: #bbb !important;
}

.about-text {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
}

.about-text p {
  color: #bbb !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
}

.card-body {
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.contatti-desc p {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
}

body.light-mode .hero-sub,
body.light-mode .about-text p,
body.light-mode .card-body,
body.light-mode .contatti-desc p {
  color: #444 !important;
}