/*
Theme Name: Gestify
Author: Tecnositalia
Version: 1.0
Description: Tema classico dedicato per gestify.it (Power/Core), sostituisce Divi. HTML scritto a mano, caricato via FTP/Advanced File Manager.
*/

/* ==========================================================================
   FONT GOTHAM - condiviso da tutte le pagine
   ========================================================================== */
@font-face {
  font-family: 'Gotham';
  src: url('/wp-content/themes/gestifytema/fonts/Gotham-Book.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('/wp-content/themes/gestifytema/fonts/Gotham-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('/wp-content/themes/gestifytema/fonts/GothamSSm-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('/wp-content/themes/gestifytema/fonts/GothamSSm-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   RESET + VARIABILI BRAND - condiviso da tutte le pagine
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand trio */
  --power:        #006989;
  --power-dark:   #00485E;
  --power-light:  #E3F2F7;
  --power-mid:    #CCE8F0;

  --core:         #5A8A6A;
  --core-dark:    #3D6B4D;
  --core-light:   #EAF2EC;
  --core-mid:     #C5DAC9;

  --neo:          #2C4A8E;
  --neo-dark:     #1C3268;
  --neo-light:    #E4EAF3;
  --neo-mid:      #C2CEDC;

  /* neutrals */
  --bg:           #FAFAF8;
  --bg-2:         #F3F3EF;
  --bg-3:         #ECECE5;
  --ink:          #1C1C1A;
  --mute:         #6B6B63;
  --mute-2:       #8E8E84;
  --line:         #E4E4DC;
  --line-2:       #D6D6CC;
  --white:        #ffffff;

  /* type */
  --f-sans:    'Gotham', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    'Gotham', ui-monospace, SFMono-Regular, monospace;
  --f-display: 'Gotham', ui-serif, Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
em {
  font-family: var(--f-sans);
  font-style: italic;
  font-weight: 400;
  color: var(--power);
  letter-spacing: -0.015em;
}

/* ==========================================================================
   NAV - VARIANTE HOME (semplice)
   ========================================================================== */
nav.home-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.home-nav .logo { display: inline-flex; align-items: center; }
.home-nav .logo img { height: 28px; width: auto; }
.home-nav .nav-links { display: flex; gap: 32px; list-style: none; }
.home-nav .nav-links a {
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.home-nav .nav-links a:hover { color: var(--ink); }
.home-nav .nav-actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 900px) {
  nav.home-nav { padding: 0 16px; height: 60px; }
	.brand-strip { top: 60px !important; }
  .home-nav .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    align-items: stretch;
    display: none;
  }
  body.nav-open .home-nav .nav-links { display: flex; }
  .home-nav .nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .home-nav .nav-links li:last-child a { border-bottom: 0; }
}

.brand-strip {
  position: fixed;
  top: 68px; left: 0; right: 0;
  height: 3px;
  display: flex;
  z-index: 99;
  pointer-events: none;
}
.brand-strip span { flex: 1; }
.brand-strip .s1 { background: var(--power); }
.brand-strip .s2 { background: var(--core); }
.brand-strip .s3 { background: var(--neo); }

/* ==========================================================================
   NAV - VARIANTE PRODOTTO (Power/Core, con back-link + ancore interne)
   ========================================================================== */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999 !important;
  height: 68px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mute);
  padding: 8px 12px 8px 10px;
  border-radius: 7px;
  transition: all .2s;
  white-space: nowrap;
}
.back-link:hover { color: var(--ink); background: var(--bg-2); }
.product-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  height: 28px;
}
.product-label img { height: 22px; width: auto; }
.product-label .sep { display: none; }
.product-label .pname {
  color: var(--product-accent, var(--power));
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
}
.nav-mid { display: flex; gap: 28px; align-items: center; }
.nav-mid a {
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
  transition: color .2s;
  white-space: nowrap;
}
.nav-mid a:hover { color: var(--ink); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* Pulsanti nav condivisi da entrambe le varianti */
.btn-nav-ghost {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  transition: all .2s;
}
.btn-nav-ghost:hover { color: var(--ink); border-color: #ccc; }
.btn-nav-primary {
  padding: 8px 16px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: all .2s;
}
.btn-nav-primary:hover {
  background: var(--product-accent, var(--power));
  border-color: var(--product-accent, var(--power));
  color: #fff;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.nav-burger span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .15s;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  nav.topnav { padding: 0 16px; height: 60px; }
  .nav-burger { display: flex; }
}

/* ==========================================================================
   RIPRESE DA POWER/CORE ORIGINALI - regole condivise da entrambe le pagine
   ========================================================================== */
.btn-nav-primary:hover { color: white !important; }
.btn-nav-ghost:hover { color: grey !important; }
.nav-mid:hover { color: grey !important; }
.nav-left:hover { color: grey !important; }

/* ==========================================================================
   NAV - VARIANTE SEMPLICE (pagine collegate dall'app: faq-gestify, videocorsi-gestify, ecc.)
   ========================================================================== */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 22px; width: auto; }
.nav-logo .sep { color: var(--line); font-size: 20px; font-weight: 300; }
.nav-logo .label { font-size: 13px; font-weight: 600; color: var(--mute); }
.btn-ticket {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; background: var(--ink); border: 1px solid var(--ink);
  border-radius: 7px; font-size: 13px; font-weight: 600; color: #fff !important;
  font-family: var(--f-sans); cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-ticket:hover { background: var(--product-accent, var(--power)); border-color: var(--product-accent, var(--power)); }

/* ==========================================================================
   FOOTER - condiviso da tutte le pagine (fonte: footer.html)
   ========================================================================== */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 56px 64px 0;
  font-family: var(--f-sans);
}
.footer-top-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color .2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contacts p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1;
  margin: 0;
}
.footer-contacts p strong { color: #fff; font-weight: 700; }
.footer-contacts a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 48px;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: grid; place-items: center;
  transition: opacity .2s;
  flex-shrink: 0;
}
.social-btn:hover { opacity: 0.85; }
.social-btn.fb { background: #1877F2; }
.social-btn.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.yt { background: #FF0000; }
.social-btn svg { fill: #fff; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  padding: 20px 0;
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .site-footer { padding: 40px 20px 0; }
  .footer-top-wrapper { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-social { justify-content: flex-start; padding-bottom: 0; }
  .footer-contacts { gap: 10px; }
  .footer-contacts p { line-height: 1; }
}
@media (max-width: 560px) {
  .footer-top-wrapper { grid-template-columns: 1fr; }
}