/*
Theme Name: Noi per Voi
Theme URI: https://noipervoi.ch
Author: STAR IT
Description: Tema proprietario leggero e modificabile per Noi Per Voi Sagl.
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: noipervoi
*/

:root {
  --npv-green: #00b978;
  --npv-green-dark: #063d34;
  --npv-green-deep: #032c27;
  --npv-orange: #ff941f;
  --npv-ink: #14201d;
  --npv-paper: #f2f0e8;
  --npv-white: #ffffff;
  --npv-line: rgba(20, 32, 29, 0.17);
  --font-display: "Segoe UI Variable Display", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--npv-paper); color: var(--npv-ink); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { padding: 132px 0; scroll-margin-top: 84px; }

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto; height: 118px; padding: 0 max(32px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; color: white;
  border-bottom: 1px solid rgba(255,255,255,.22); transition: height .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled { height: 84px; background: rgba(3,44,39,.94); border-bottom-color: rgba(255,255,255,.1); box-shadow: 0 12px 32px rgba(0,22,18,.16); backdrop-filter: blur(14px); }
.brand { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.18)); transition: width .3s ease, height .3s ease; }
.site-header.is-scrolled .brand-mark { width: 62px; height: 62px; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; white-space: nowrap; text-align: left; }
.brand-copy strong { font-family: var(--font-display); font-size: 17px; font-weight: 740; letter-spacing: 0; }
.brand-copy small { margin-top: 4px; font-size: 9px; letter-spacing: 0; text-transform: uppercase; opacity: .76; }
.nav { display: flex; align-items: center; gap: 38px; font-size: 13px; font-weight: 650; letter-spacing: .08em; }
.npv-menu { display: flex; align-items: center; gap: 38px; margin: 0; padding: 0; list-style: none; }
.nav a { position: relative; padding: 14px 0; }
.nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 7px; height: 1px; background: white; transition: right .25s ease; }
.npv-menu > li:last-child > a::after { display: none; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.nav-contact, .npv-menu > li:last-child > a { border: 1px solid rgba(255,255,255,.65); border-radius: 999px; padding: 13px 21px !important; }
.menu-toggle { display: none; }

.hero { position: relative; height: 100svh; min-height: 720px; overflow: hidden; background: #18352e; color: white; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.25s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.045); transition: transform 8s ease; }
.hero-slide.is-active .hero-image { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,22,19,.76) 0%, rgba(1,24,20,.48) 48%, rgba(1,20,18,.14) 78%), linear-gradient(0deg, rgba(0,20,16,.42), transparent 48%); }
.hero-content { position: relative; z-index: 2; height: 100%; padding-top: 170px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow, .section-kicker { margin: 0 0 28px; color: var(--npv-green); font-size: 12px; font-weight: 750; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow { color: #bff6df; }
.eyebrow::before, .section-kicker::before { content: ""; display: inline-block; width: 40px; height: 1px; margin: 0 14px 4px 0; background: currentColor; }
.hero h1 { max-width: 1000px; margin: 0; font-family: var(--font-display); font-size: clamp(3.9rem, 7.5vw, 7.5rem); font-weight: 720; line-height: .95; letter-spacing: -.047em; text-wrap: balance; }
.hero-text { max-width: 650px; margin: 32px 0 38px; font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.65; color: rgba(255,255,255,.88); }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 220px; gap: 32px; padding: 17px 22px; border-radius: 7px; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; transition: transform .25s, background .25s, color .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--npv-orange); color: #1e211b; }
.hero-controls { position: absolute; z-index: 5; right: max(32px, calc((100vw - 1180px) / 2)); bottom: 58px; display: flex; gap: 20px; }
.hero-dot { color: rgba(255,255,255,.58); background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); width: 46px; padding: 0 0 10px; text-align: left; font-size: 11px; cursor: pointer; transition: color .25s, border .25s; }
.hero-dot.is-active { color: white; border-color: var(--npv-orange); }
.scroll-cue { position: absolute; z-index: 5; left: max(32px, calc((100vw - 1180px) / 2)); bottom: 44px; display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.75); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 66px; height: 1px; background: currentColor; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 11vw; }
.section h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.85rem, 4.8vw, 5.1rem); line-height: 1.01; font-weight: 700; letter-spacing: -.04em; }
.intro-copy { padding-top: 48px; font-size: 16px; line-height: 1.8; color: #53605c; }
.intro-copy .lead { margin-top: 0; color: var(--npv-ink); font-size: 23px; line-height: 1.55; }
.text-link { display: inline-flex; gap: 22px; margin-top: 28px; color: var(--npv-green-dark); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; border-bottom: 1px solid var(--npv-line); padding-bottom: 8px; }
.facts { margin-top: 100px; padding-top: 36px; border-top: 1px solid var(--npv-line); display: grid; grid-template-columns: repeat(3, 1fr); }
.facts div { display: flex; flex-direction: column; gap: 9px; padding-right: 30px; }
.facts strong { font-family: var(--font-display); font-size: 33px; font-weight: 700; letter-spacing: -.025em; }
.facts span { color: #69736f; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.activities { background: white; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 9vw; align-items: end; }
.section-heading > p { margin: 0 0 7px; color: #63706b; line-height: 1.75; }
.activity-grid { margin-top: 86px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity-card { position: relative; min-width: 0; overflow: hidden; background: var(--npv-paper); border: 1px solid var(--npv-line); transition: transform .35s ease, box-shadow .35s ease; }
.activity-card:hover { transform: translateY(-7px); box-shadow: 0 24px 54px rgba(16,48,40,.13); }
.activity-visual { position: relative; height: 238px; overflow: hidden; background: var(--npv-green-dark); }
.activity-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(3,44,39,.62)); }
.activity-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform .65s ease, filter .65s ease; }
.activity-card:hover .activity-visual img { transform: scale(1.045); filter: saturate(1) contrast(1.04); }
.activity-number { position: absolute; z-index: 1; left: 24px; bottom: 20px; color: white; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.activity-copy { padding: 32px 30px 34px; }
.activity-card h3 { max-width: 290px; margin: 0 0 18px; font-family: var(--font-display); font-size: 29px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.activity-card p { min-height: 96px; margin: 0; color: #66716d; font-size: 14px; line-height: 1.7; }
.activity-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--npv-line); list-style: none; }
.activity-card li { padding: 7px 10px; background: white; color: var(--npv-green-dark); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.activity-promise { margin-top: 36px; padding: 24px 30px; display: flex; align-items: center; justify-content: center; gap: 30px; background: var(--npv-green-dark); color: white; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.activity-promise i { width: 4px; height: 4px; border-radius: 50%; background: var(--npv-orange); }

.projects { position: relative; overflow: hidden; background: var(--npv-green-deep); color: white; isolation: isolate; }
.projects::before { content: ""; position: absolute; z-index: 0; width: min(58vw, 720px); aspect-ratio: 1; right: max(-9vw, -130px); top: 50%; background: url("assets/images/noi-per-voi-logo.png") center / contain no-repeat; opacity: .085; filter: grayscale(1) brightness(2.8); transform: translateY(-50%) rotate(-9deg); pointer-events: none; }
.projects::after { content: ""; position: absolute; z-index: 0; inset: 0; background: radial-gradient(circle at 82% 45%, rgba(0,185,120,.17), transparent 38%), linear-gradient(115deg, transparent 42%, rgba(255,255,255,.025) 42.2%, transparent 67%); pointer-events: none; }
.projects-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: start; }
.section-kicker-light { color: #9be4c8; }
.project-list { border-top: 1px solid rgba(255,255,255,.22); }
.project-list a { display: flex; justify-content: space-between; align-items: center; padding: 27px 4px; border-bottom: 1px solid rgba(255,255,255,.22); transition: padding .25s, color .25s; }
.project-list a:hover { padding-left: 12px; color: #bff6df; }
.project-list span { display: flex; flex-direction: column; gap: 8px; }
.project-list small { color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.project-list strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.project-list b { color: var(--npv-orange); font-size: 23px; font-weight: 400; }

.press { background: #e8e5dc; }
.press-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.press-grid article { border-top: 1px solid var(--npv-ink); padding-top: 24px; }
.press-grid span { color: var(--npv-green-dark); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.press-grid h3 { margin: 36px 0 18px; font-family: var(--font-display); font-size: 28px; line-height: 1.17; font-weight: 700; letter-spacing: -.025em; }
.press-grid p { color: #5f6a66; font-size: 14px; line-height: 1.75; }

.contact { background: var(--npv-orange); color: #1f2a27; }
.contact-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12vw; align-items: end; }
.contact .section-kicker-light { color: var(--npv-green-dark); }
.contact-intro > p:last-child { max-width: 620px; margin: 34px 0 0; font-size: 19px; line-height: 1.65; }
.contact-details { padding: 30px 0 6px 34px; border-left: 1px solid rgba(31,42,39,.3); }
.contact-details address { margin: 0 0 30px; font-style: normal; font-size: 16px; line-height: 1.65; }
.contact-details address strong { font-size: 19px; }
.contact-label { margin: 0 0 9px; color: var(--npv-green-dark); font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.contact-phone { display: inline-block; margin-bottom: 15px; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.contact-details small { display: block; opacity: .68; }
.contact-form-wrap { margin-top: 72px; }
.contact-form { padding: 48px; border: 1px solid rgba(31,42,39,.08); border-radius: 26px; background: #fff; box-shadow: 0 18px 48px rgba(72,43,4,.11); }
.form-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--npv-line); }
.form-heading > span { font-family: var(--font-display); font-size: 31px; font-weight: 700; letter-spacing: -.025em; }
.form-heading p { max-width: 600px; margin: 4px 0 0; color: #66716d; font-size: 13px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.form-grid label { display: flex; flex-direction: column; gap: 10px; }
.form-grid label > span { color: var(--npv-green-dark); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 0; border-bottom: 1px solid #a9afac; border-radius: 0; background: transparent; color: var(--npv-ink); font-family: var(--font-body); font-size: 16px; outline: none; padding: 11px 2px 12px; transition: border-color .2s, box-shadow .2s; }
.form-grid select { cursor: pointer; }
.form-grid textarea { min-height: 135px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-bottom-color: var(--npv-green); box-shadow: 0 1px 0 var(--npv-green); }
.form-wide { grid-column: 1 / -1; }
.form-consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; color: #5f6965; font-size: 12px; line-height: 1.45; }
.form-consent input { width: 16px; height: 16px; margin: 0; accent-color: var(--npv-green-dark); }
.form-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button-submit { border: 0; background: var(--npv-green-dark); color: white; cursor: pointer; }
.preview-status { max-width: 390px; color: #82600a; font-size: 11px; line-height: 1.45; opacity: 0; transition: opacity .2s; }
.preview-status.is-visible { opacity: 1; }
.npv-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.npv-form-message { margin: 28px 0 0; padding: 16px 18px; border-radius: 7px; font-size: 14px; line-height: 1.5; }
.npv-form-success { background: #e5f6ef; color: var(--npv-green-dark); }
.npv-form-error { background: #fff0e3; color: #7b3500; }
.contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 24px; }
.preview-note { display: block; font-size: 10px; letter-spacing: .04em; opacity: .62; }
.contact-top-link { margin-top: 0; border-color: rgba(31,42,39,.35); }
.footer { padding: 38px 0; background: #061f1c; color: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.brand-footer img { width: 52px; height: 52px; }
.brand-footer > span { display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap; text-align: left; }
.brand-footer strong { font-size: 14px; letter-spacing: 0; }
.brand-footer small { margin-top: 4px; font-size: 8px; letter-spacing: 0; text-transform: uppercase; opacity: .6; }
.footer p { color: rgba(255,255,255,.5); font-size: 11px; letter-spacing: .08em; }
.back-to-top { position: fixed; z-index: 40; right: 24px; bottom: 24px; width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; background: var(--npv-orange); color: #1f2a27; box-shadow: 0 12px 30px rgba(0,22,18,.18); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, visibility .25s, transform .25s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top span { font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.back-to-top b { font-size: 17px; line-height: 1; }

@media (max-width: 900px) {
  .shell { width: min(100% - 40px, 680px); }
  .section { padding: 94px 0; }
  .site-header { height: 92px; padding-inline: 20px; }
  .site-header.is-scrolled { height: 76px; }
  .brand-mark { width: 66px; height: 66px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 8px; }
  .menu-toggle { position: relative; z-index: 3; display: flex; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .menu-toggle span { width: 18px; height: 1px; background: white; }
  .nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 100px 30px 40px; background: #032c27; font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.025em; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s; }
  .npv-menu { flex-direction: column; justify-content: center; gap: 14px; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-contact { margin-top: 18px; font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; }
  .hero { min-height: 680px; }
  .hero-content { padding-top: 126px; justify-content: center; }
  .hero h1 { font-size: clamp(3.65rem, 15vw, 5.4rem); }
  .hero-text { margin-top: 24px; font-size: 16px; line-height: 1.55; }
  .hero-controls { right: 20px; bottom: 32px; gap: 12px; }
  .hero-dot { width: 34px; }
  .scroll-cue { display: none; }
  .split, .section-heading, .projects-inner, .contact-heading { grid-template-columns: 1fr; gap: 54px; }
  .intro-copy { padding-top: 0; }
  .intro-copy .lead { font-size: 20px; }
  .facts { grid-template-columns: 1fr; gap: 26px; margin-top: 64px; }
  .facts div { padding-bottom: 24px; border-bottom: 1px solid var(--npv-line); }
  .activity-grid { grid-template-columns: 1fr; margin-top: 58px; gap: 20px; }
  .activity-card { min-height: 0; }
  .activity-visual { height: 230px; }
  .activity-card p { min-height: 0; }
  .activity-promise { align-items: flex-start; flex-direction: column; gap: 12px; }
  .activity-promise i { display: none; }
  .press-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-details { padding: 26px 0 0; border-top: 1px solid rgba(31,42,39,.3); border-left: 0; }
  .contact-form { padding: 30px 24px; }
  .projects::before { width: 620px; right: -310px; opacity: .06; }
  .form-heading, .form-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-wide { grid-column: auto; }
  .form-actions, .contact-foot { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 24px; }
  .back-to-top { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.admin-bar .site-header { top: 32px; }
.npv-page { min-height: 72vh; padding: 150px 0 100px; background: var(--npv-paper); }
.npv-page article { max-width: 850px; margin: 0 auto; padding: 54px; border-radius: 24px; background: white; box-shadow: 0 18px 48px rgba(16,48,40,.1); }
.npv-page h1 { margin-top: 0; font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.04em; }
.npv-page .entry-content { font-size: 17px; line-height: 1.75; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ==================================================================
   NPV FOOTER CREDIT R2 - theme 0.1.1

   Discreet production credit below the existing company copyright.
   No external assets are loaded.
   ================================================================== */

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.footer-meta p {
    margin: 0;
}

.footer-credit {
    display: inline-block;
    margin-top: 4px;
    color: rgba(255,255,255,.36);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .035em;
    text-decoration: none;
    transition: color .18s ease;
}

.footer-credit:hover,
.footer-credit:focus-visible {
    color: rgba(255,255,255,.62);
}

@media (max-width: 900px) {
    .footer-meta {
        align-items: flex-start;
        text-align: left;
    }
}

