/*
Theme Name: Interface Child
Theme URI: https://themehorse.com
Description: Tema Figlio per il tema Interface di Theme Horse.
Author: Il Tuo Nome
Template: interface
Version: 1.0.0
*/

/* Scrivi il tuo CSS personalizzato sotto questa linea */

/* ==========================================================================
   LANDING PAGE XMANUAL STYLES
   ========================================================================== */
/* ALLARGA IL CONTENITORE GENERALE PER LE PAGINE SENZA SIDEBAR */
.no-sidebar-template .container,
.no-sidebar .container {
    max-width: 1350px !important; /* Allarga la gabbia fissa del tema */
    width: 100% !important;
}

/* ESPANDE IL CONTENUTO PRINCIPALE AL 100% DELLO SPAZIO DISPONIBILE */
.no-sidebar-template #content,
.no-sidebar #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* RIPRISTINA LA COMPATIBILITÀ RESPONSIVE SU SCHERMI PICCOLI */
@media only screen and (max-width: 1078px) {
    .no-sidebar-template .container,
    .no-sidebar .container {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


#product-page {
    --ink: #14213D;
    --ink-soft: #2A3B63;
    --paper: #F5F4F0;
    --paper-dim: #ECEAE3;
    --slate: #4B5165;
    --slate-soft: #757C8F;
    --amber: #63C6AE;
    --amber-deep: #3F9683;
    --rule: #DAD6CC;
    --white: #FFFDF8;

    font-family: inherit;
    color: var(--slate);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  #product-page * { box-sizing: border-box; }
  #product-page img { max-width: 100%; display: block; }
  #product-page a { color: inherit; }

  #product-page h1, #product-page h2, #product-page h3 {
    font-family: inherit;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
  }
  #product-page .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }
  #product-page .eyebrow {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    font-weight: 500;
  }
  #product-page .wrap {
    /* Il tuo child theme allarga .container a 1350px (classi
       .no-sidebar-template/.no-sidebar), tornando a piena larghezza
       sotto i 1078px. 1200px qui lascia un po' di margine dai 1350px
       pieni - le sezioni a più colonne (funzionalità, licenze) ne
       approfittano, il testo prosa resta comunque leggibile grazie
       ai propri max-width più stretti (.problema .wrap, p.lede, ecc). */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  #product-page section { padding: 88px 0; }
  #product-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 3px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  #product-page .btn:hover { transform: translateY(-1px); }
  #product-page .btn-amber {
    background: var(--amber);
    color: var(--white);
    box-shadow: 0 2px 0 var(--amber-deep);
  }
  #product-page .btn-amber:hover { background: var(--amber-deep); }
  #product-page .btn-ghost {
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
  }
  #product-page .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

  /* ---------- HERO ---------- */
  #product-page .hero {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    padding: 96px 0 0 0;
    overflow: hidden;
  }
  #product-page .hero .wrap {
    display: block;
  }
  #product-page .hero-copy {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  #product-page .hero h1 {
    color: var(--white);
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    margin: 18px 0 20px 0;
  }
  #product-page .hero h1 em {
    font-style: normal;
    color: var(--amber);
  }
  #product-page .hero p.lede {
    color: #D6DCEE;
    font-size: 1.1rem;
    max-width: 52ch;
    margin: 0 auto 32px auto;
  }
  #product-page .hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
  #product-page .hero-visual {
    background: var(--paper);
    border-radius: 6px;
    padding: 22px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    max-width: 620px;
    margin: 56px auto 0 auto;
  }
  #product-page .hero-bottom-space { height: 60px; }

  /* ---------- PROBLEMA ---------- */
  #product-page .problema .wrap { max-width: 760px; }
  #product-page .problema h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 14px 0 22px 0; }
  #product-page .problema p { font-size: 1.05rem; }
  #product-page .problema p + p { margin-top: 14px; }

  /* ---------- COME FUNZIONA ---------- */
  #product-page .come-funziona { background: var(--paper-dim); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  #product-page .come-funziona .head { max-width: 620px; margin-bottom: 56px; }
  #product-page .come-funziona h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 14px 0 0 0; }
  #product-page .steps {
    position: relative;
    display: grid;
    gap: 0;
  }
  #product-page .steps::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--amber) 0 6px, transparent 6px 12px);
  }
  #product-page .step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 26px 0;
  }
  #product-page .step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--rule);
    display: flex; align-items: center; justify-content: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
    color: var(--amber-deep);
    font-size: 1.05rem;
    z-index: 1;
  }
  #product-page .step h3 { font-size: 1.25rem; margin-bottom: 6px; }
  #product-page .step p { margin: 0; font-size: 0.98rem; }
  #product-page .step .filebadge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    background: var(--white);
    border: 1px solid var(--rule);
    color: var(--ink-soft);
    padding: 2px 7px;
    border-radius: 3px;
    margin-top: 10px;
    margin-right: 6px;
  }

  /* ---------- FUNZIONALITA ---------- */
  #product-page .funzionalita .head { max-width: 620px; margin-bottom: 44px; }
  #product-page .funzionalita h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 14px 0 0 0; }
  #product-page .grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }
  #product-page .feature {
    background: var(--paper);
    padding: 28px 26px;
  }
  #product-page .feature .tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    color: var(--amber-deep);
    letter-spacing: 0.04em;
  }
  #product-page .feature h3 {
    font-size: 1.08rem;
    margin: 8px 0 8px 0;
  }
  #product-page .feature p { margin: 0; font-size: 0.93rem; }

  /* ---------- INTERFACCIA ---------- */
  #product-page .interfaccia { background: var(--ink); }
  #product-page .interfaccia .head { max-width: 560px; margin: 0 auto 40px auto; text-align: center; }
  #product-page .interfaccia .eyebrow { color: #8FDFC9; }
  #product-page .interfaccia h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 14px 0 0 0; }
  #product-page .interfaccia p.sub { color: #C3CADF; margin-top: 12px; }
  #product-page .mockup-frame {
    background: var(--paper);
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  }
  #product-page .mockup-note {
    text-align: center;
    color: #8891AC;
    font-size: 0.82rem;
    margin-top: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  /* ---------- LICENZE ---------- */
  #product-page .licenze .head { max-width: 620px; margin-bottom: 44px; }
  #product-page .licenze h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 14px 0 0 0; }
  #product-page .plan-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  #product-page .plan {
    flex: 1 1 300px;
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: 6px;
    padding: 32px;
  }
  #product-page .plan.is-main { border-color: var(--amber); position: relative; }
  #product-page .plan.is-main::before {
    content: "Consigliata";
    position: absolute;
    top: -12px; left: 28px;
    background: var(--amber);
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
  }
  #product-page .plan h3 { font-size: 1.3rem; }
  #product-page .plan .desc { font-size: 0.92rem; margin: 8px 0 20px 0; }
  #product-page .plan ul { list-style: none; margin: 0 0 26px 0; padding: 0; }
  #product-page .plan li {
    font-size: 0.92rem;
    padding: 8px 0;
    border-top: 1px solid var(--rule);
    display: flex; gap: 10px;
  }
  #product-page .plan li:first-child { border-top: none; }
  #product-page .plan li::before { content: "—"; color: var(--amber-deep); flex-shrink: 0; }

  /* ---------- CTA FINALE ---------- */
  #product-page .cta-final {
    background: var(--paper-dim);
    border-top: 1px solid var(--rule);
    text-align: center;
  }
  #product-page .cta-final h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
  #product-page .cta-final p { max-width: 46ch; margin: 14px auto 30px auto; }

  /* ---------- FOOTER ---------- */
  #product-page footer {
    background: var(--ink);
    color: #9AA2BE;
    padding: 40px 0;
    font-size: 0.86rem;
  }
  #product-page footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  #product-page footer .brand { color: var(--white); font-family: inherit; font-weight: 700; font-size: 1.05rem; }

  @media (max-width: 860px) {
    #product-page .grid-features { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 560px) {
    #product-page section { padding: 60px 0; }
    #product-page .grid-features { grid-template-columns: 1fr; }
    #product-page .step { grid-template-columns: 40px 1fr; gap: 16px; }
    #product-page .step-num { width: 40px; height: 40px; font-size: 0.9rem; }
    #product-page .steps::before { left: 19px; }
  }