/*
Theme Name: Theme One Page
Theme URI: https://github.com/yourusername/one-page
Author: Your Andrea Latella
Author URI: https://yourwebsite.com
Description: A beautiful, customizable one-page WordPress theme perfect for professionals, consultants, and service providers. Features a modern design, smooth scrolling, and easy customization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: giulia-querio
Tags: one-page, portfolio, professional, services, responsive, light
*/

/* ===================================================================
   CSS VARIABLES
=================================================================== */
:root {
  --primary:        #C97D60;
  --secondary:      #7A9E7E;
  --bg:             #FAF6F0;
  --bg-paper:       #FFFFFF;
  --bg-dark:        #3D3530;
  --bg-darker:      #2a1f1b;
  --text:           #3D3530;
  --text-muted:     #7A6A62;
  --border-sage:    rgba(122, 158, 126, 0.2);
  --font-heading:   'Playfair Display', serif;
  --font-body:      'Lato', sans-serif;
  --radius:         16px;
  --container:      1140px;
  --transition:     0.3s ease;
}

/* ===================================================================
   RESET & BASE
=================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar {
  padding-top: 32px;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================================================================
   LAYOUT UTILITIES
=================================================================== */
.gq-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.gq-container--narrow { max-width: 800px; }

.gq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (min-width: 900px) {
  .gq-section { padding-top: 112px; padding-bottom: 112px; }
}

.gq-section--paper  { background-color: var(--bg-paper); }
.gq-section--bg     { background-color: var(--bg); }
.gq-section--dark   { background: linear-gradient(135deg, #3D3530 0%, #5a4a42 100%); }

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
.gq-overline {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.gq-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text);
  line-height: 1.2;
}

.gq-body-text {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

/* ===================================================================
   BUTTONS
=================================================================== */
.gq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 32px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.gq-btn:hover { text-decoration: none; transform: translateY(-2px); }

.gq-btn--primary {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(201, 125, 96, 0.28);
}
.gq-btn--primary:hover {
  background-color: #b56c50;
  border-color: #b56c50;
  box-shadow: 0 12px 32px rgba(201, 125, 96, 0.38);
  color: #fff;
}

.gq-btn--outlined {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.gq-btn--outlined:hover {
  background-color: rgba(201, 125, 96, 0.08);
  color: var(--primary);
}

.gq-btn--text {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  padding: 8px 0;
  border-radius: 0;
}
.gq-btn--text:hover { background: transparent; }

/* ===================================================================
   NAVBAR
=================================================================== */
.gq-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: rgba(250, 246, 240, 0.97);
  box-shadow: 0 2px 16px rgba(61, 53, 48, 0.08);
  border-bottom-color: var(--border-sage);
}

body.admin-bar .gq-navbar {
  top: 32px;
}

.gq-navbar.is-scrolled {
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(61, 53, 48, 0.08);
  border-bottom-color: var(--border-sage);
}

.gq-navbar__inner {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
@media (min-width: 900px) {
  .gq-navbar__inner { padding: 12px 48px; gap: 48px; }
}

/* Logo */
.gq-navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.gq-navbar__brand-link,
.custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.gq-navbar__logo-img,
.custom-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.gq-navbar__brand-text { line-height: 1.1; }
.gq-navbar__brand-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.gq-navbar__brand-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

/* Desktop links wrapper */
.gq-navbar__desktop {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
@media (min-width: 900px) { .gq-navbar__desktop { display: flex; } }

.gq-navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) { .gq-navbar__links { display: flex; } }

.gq-navbar__links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  transition: color var(--transition);
  text-decoration: none;
}
.gq-navbar__links a:hover { color: var(--primary); }

/* Dropdown submenu — comune */
.gq-navbar__links .menu-item-has-children,
.gq-drawer__list .menu-item-has-children {
  position: relative;
}

/* Drawer: link e freccia sulla stessa riga */
.gq-drawer__list .menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.gq-drawer__list .menu-item-has-children > a {
  flex: 1;
}

.gq-drawer__list .menu-item-has-children > .gq-submenu-toggle {
  flex-shrink: 0;
  padding: 14px 8px;
}

.gq-drawer__list .menu-item-has-children > .sub-menu {
  flex-basis: 100%;
}

/* Pulsante toggle (▾) iniettato via JS */
.gq-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.menu-item-has-children.is-open > .gq-submenu-toggle {
  transform: rotate(180deg);
}

/* Sub-menu nascosto di default */
.sub-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item-has-children.is-open > .sub-menu {
  display: block;
}

/* Desktop: pannello flottante */
.gq-navbar__links .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-paper);
  border: 1px solid var(--border-sage);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(61, 53, 48, 0.12);
  padding: 6px 0;
  z-index: 1010;
}

.gq-navbar__links .sub-menu li {
  display: block;
}

.gq-navbar__links .sub-menu a {
  display: block;
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Mobile drawer: lista indentata */
.gq-drawer__list .sub-menu li {
  border-bottom: none;
}

.gq-drawer__list .sub-menu a {
  padding: 10px 4px 10px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Hamburger */
.gq-navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
   margin-left: auto;
}
@media (min-width: 900px) { .gq-navbar__hamburger { display: none; } }

.gq-navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile drawer */
.gq-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-paper);
  z-index: 1100;
  transition: right 0.35s ease;
  box-shadow: -4px 0 24px rgba(61, 53, 48, 0.12);
  padding: 80px 24px 24px;
}
.gq-drawer.is-open { right: 0; }

.gq-drawer__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 48, 0.4);
  z-index: 1099;
}
.gq-drawer__overlay.is-open { display: block; }

.gq-drawer__list { list-style: none; }
.gq-drawer__list li { border-bottom: 1px solid rgba(0,0,0,0.06); }
.gq-drawer__list a {
  display: block;
  padding: 14px 4px;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition);
}
.gq-drawer__list a:hover { color: var(--primary); }
.gq-drawer__close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--text-muted);
}

/* ===================================================================
   HERO
=================================================================== */
.gq-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FAF6F0 0%, #EEE5D8 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.gq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 240, 0.05);
  pointer-events: none;
  z-index: 0;
}

.gq-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 60px 0;
  animation: fadeInUp 0.9s ease both;
  margin: 0 auto;
}

.gq-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}

.gq-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.gq-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 40px;
}

.gq-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================================================
   CHI SONO
=================================================================== */
.gq-chisono__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .gq-chisono__grid { grid-template-columns: 2fr 1fr; gap: 64px; }
}

.gq-chisono__bio p + p { margin-top: 16px; }

.gq-chisono__cv-btn {
  margin-top: 32px;
  text-align: center;
}

.gq-chisono__img-wrap {
  position: relative;
}
.gq-chisono__img-wrap::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  background: rgba(122, 158, 126, 0.15);
  border-radius: var(--radius);
  z-index: 0;
}
.gq-chisono__img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
}

/* ===================================================================
   AMBITI
=================================================================== */
#ambiti.gq-section--bg::before {
  background-color: var(--gq-ambiti-overlay, rgba(245, 242, 238, 0.6));
}

.gq-ambiti__header { text-align: center; margin-bottom: 64px; }

.gq-ambiti__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .gq-ambiti__grid { grid-template-columns: repeat(var(--gq-ambiti-columns, 2), 1fr); } }

.gq-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-sage);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(61, 53, 48, 0.1);
}

.gq-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gq-ambiti-icon-bg, #f5f2ee);
  border: 1px solid var(--gq-ambiti-icon-border, #e8dfd6);
  flex-shrink: 0;
  overflow: hidden;
}

.gq-card__icon img {
  width: 75%;
  height: 75%;
}

.gq-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}
.gq-card__desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }

.gq-card__cta { margin-top: auto; }

/* Link wrapper per le card cliccabili */
.gq-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.gq-card-link:hover,
.gq-card-link:focus {
  text-decoration: none;
}
.gq-card-link .gq-card {
  cursor: pointer;
  height: 100%;
}

/* ===================================================================
   PERCORSO
=================================================================== */
.gq-percorso__header { text-align: center; margin-bottom: 64px; }

.gq-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .gq-timeline::before { left: 44px; }
}

.gq-timeline__step {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}
.gq-timeline__step:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .gq-timeline__step { gap: 40px; } }

.gq-timeline__badge {
  flex-shrink: 0;
  align-self: center;
  width: 125px; height: 125px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
@media (min-width: 900px) {
  .gq-timeline__badge { width: 125px; height: 125px; font-size: 1.4rem; }
}

.gq-timeline__badge--primary { background: var(--primary); }
.gq-timeline__badge--secondary { background: var(--secondary); }

.gq-timeline__badge--image { background: transparent; }

@media (max-width: 767px) {
   .gq-timeline__badge {
    display: none;
   }
  .gq-timeline__badge--image img {
    display: none;
  }
}

.gq-timeline__badge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gq-timeline__content { padding-top: 0; }

.gq-timeline__step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text);
}
@media (min-width: 900px) { .gq-timeline__step-title { font-size: 1.4rem; } }

/* ===================================================================
   APPROFONDIMENTI (BLOG CARDS)
=================================================================== */
.gq-blog__header { text-align: center; margin-bottom: 64px; }

.gq-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) { .gq-blog__grid { grid-template-columns: repeat(3, 1fr); } }

.gq-blog-card {
  background: var(--bg-paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(61, 53, 48, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gq-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(61, 53, 48, 0.12);
}
.gq-blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gq-blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.gq-blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gq-blog-card__tag {
  display: inline-block;
  background: rgba(122, 158, 126, 0.15);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.gq-blog-card__date { font-size: 0.75rem; color: var(--text-muted); }
.gq-blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}
.gq-blog-card__excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; flex: 1; }
.gq-blog-card__link { margin-top: 16px; display: inline-block; }

/* ===================================================================
   CONTATTI
=================================================================== */
.gq-contatti {
  padding: 100px 0;
}

.gq-contatti__header { text-align: center; margin-bottom: 48px; }
.gq-contatti__header .gq-section-title { color: var(--text); margin-top: 4px; }


/* Card bianca */
.gq-contatti__card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(61, 53, 48, 0.10);
}
@media (max-width: 600px) {
  .gq-contatti__card { padding: 28px 20px; }
}

/* Riga info */
.gq-cinfo__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.gq-cinfo__row:first-child { padding-top: 0; }
.gq-cinfo__row:last-of-type { padding-bottom: 0; }

.gq-cinfo__divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

/* Icona */
.gq-cinfo__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(122, 158, 126, 0.12);
  border: 1px solid rgba(122, 158, 126, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage);
}
.gq-cinfo__icon-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.gq-cinfo__icon-wrap svg {
  width: 20px;
  height: 20px;
}

/* Testo */
.gq-cinfo__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 600;
}
.gq-cinfo__value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.gq-cinfo__value:hover { color: var(--primary); }

/* ===================================================================
   FOOTER
=================================================================== */
.gq-footer {
  background: var(--bg-darker);
  padding: 28px 24px;
}
.gq-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
@media (min-width: 600px) {
  .gq-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.gq-footer__copy { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.gq-footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.gq-footer__vat { color: rgba(255,255,255,0.35); font-size: 0.8rem; }
.gq-footer__cookie-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.78);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: background var(--transition);
}
.gq-footer__cookie-btn:hover { background: rgba(255,255,255,0.08); }

/* ===================================================================
   SINGLE POST
=================================================================== */
.gq-single {
  padding-top: 60px;
  padding-bottom: 80px;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.gq-single__img {
  border-radius: var(--radius);
  margin-bottom: 40px;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}
.gq-single__header { margin-bottom: 32px; }
.gq-single__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 12px 0 16px;
}
.gq-single .entry-content h2, .gq-single .entry-content h3 {
  font-family: var(--font-heading);
  margin: 28px 0 12px;
}
.gq-single .entry-content p { color: var(--text-muted); margin-bottom: 16px; }
.gq-single .entry-content ul,
.gq-single .entry-content ol {
  padding-left: 2.0em;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.gq-single .entry-content ul { list-style: disc; }
.gq-single .entry-content ol { list-style: decimal; }
.gq-single .entry-content li { margin-bottom: 6px; }
.gq-single__back { display: inline-block; margin-top: 40px; }

/* ===================================================================
   BLOG LISTING (index.php)
=================================================================== */
.gq-blog-listing {
  padding-top: 120px;
  padding-bottom: 80px;
}
.gq-blog-listing__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 48px;
}

/* ===================================================================
   FADE-IN ANIMATION
=================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.is-visible { opacity: 1; transform: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

/* ===================================================================
   CUSTOM CSS
=================================================================== */

.citation {
  width: 90%;
  padding-top: 40px;
  text-align: center;
}

