/* =========================================================================
   TREEMME CORPORATE & MYTENNIS APP — Stile Unificato
   ========================================================================= */

/* Font Inter caricato via <link> nell'head di ogni pagina — niente @import qui, duplicherebbe la richiesta e blocca il rendering. */

/* --- 1. VARIABILI GLOBALI (Unificate) --- */
:root {
    /* Palette Treemme Corporate — blu petrolio + arancione (index.php) */
    --dark:   #1A436D;
    --dark2:  #123354;
    --teal:   #C1440C;
    --teal2:  #96350A;
    /* Palette MyTennis SaaS (software_mytennis.php) — allineata al navy+clay dell'app reale */
    --mt-dark:      #1e3a5f;
    --mt-mid:       #c2410c;
    --mt-sky:       #c2410c;
    --mt-sky-light: #fb923c;
    --mt-sky-bg:    #fff7ed;
    --mt-sky-dark:  #7c2d0a;
    --mt-warning:   #f59e0b;
    /* Legacy aliases (non usati sulla pagina MyTennis) */
    --mt-green: #16a34a;
    --mt-green-dark: #15803d;
    --mt-green-light: #dcfce7;
    --mt-blue: #0284c7;

    /* Superfici e Ombre */
    --bg: #f0f4f8;
    --surface: #ffffff;
    --border: #e2e8f0;
    --muted-bg: #f8fafc;
    --text-main: #0f172a;
    --text-sub: #334155;
    --text-muted: #64748b;
    
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --sh-md: 0 4px 16px rgba(0,0,0,0.08);
    --sh-lg: 0 20px 50px rgba(0,0,0,0.12);
    --sh-xl: 0 30px 80px rgba(0,0,0,0.18);

    /* Identità sito corporate — blu petrolio + arancione, ispirata a soluzioneinformatica.net */
    --paper:        #F8FAFC;
    --paper-raised: #ffffff;
    --ink:          #020617;
    --ink-body:     #475569;
    --ink-soft:     #64748B;
    --line:         #E2E8F0;
    /* Colori del logo — restano navy+teal, indipendenti dalla palette del sito */
    --logo-dark:    #0d2347;
    --logo-teal:    #05D5B4;

    --font-serif: 'Fraunces', Georgia, "Iowan Old Style", serif;
    --font-sans:  'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono:  ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

/* --- 2. REGOLE BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.w { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.v-container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* =========================================================================
   STILI SITO CORPORATE (index.php)
   ========================================================================= */

/* Header Treemme */
.hd {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26,67,109,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.hd-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 34px; overflow: visible; }
.dl { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .9s cubic-bezier(.4,0,.2,1) forwards; }
.lp { stroke: #fff; }
.l1 { stroke: var(--logo-teal); animation-delay: .05s; }
.l2 { stroke: var(--logo-teal); animation-delay: .2s; }
.l3 { stroke: var(--logo-teal); animation-delay: .35s; }
.lg { animation: draw .9s cubic-bezier(.4,0,.2,1) forwards, glow 2.5s ease-in-out infinite alternate 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow {
    from { filter: drop-shadow(0 0 2px rgba(5,213,180,.2)); }
    to   { filter: drop-shadow(0 0 8px rgba(5,213,180,.75)); }
}

/* Nav links Treemme */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #B9C4D6; text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 6px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav .n-cta { background: var(--teal); color: #fff !important; font-weight: 700 !important; letter-spacing: 0.2px; padding: 14px 26px; border-radius: 12px; transition: background .2s !important; }
.nav .n-cta:hover { background: var(--teal2) !important; }
.nav a.active { color: #fff; background: rgba(255,255,255,.08); }

/* Menu mobile (hamburger) */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: #fff; display: block; border-radius: 2px; }
.hd.menu-aperto .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); padding: 16px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
}
.hd.menu-aperto .nav a { padding: 12px 14px; }
.hd.menu-aperto .nav .n-cta { text-align: center; margin-top: 6px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.btn-main { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal2); transition: transform .1s, box-shadow .1s; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--teal2); }
.btn-main:active { transform: translateY(4px); box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.36); }
/* .btn-ghost su sfondo chiaro (fuori dall'hero) */
.sec .btn-ghost, .page-hero .btn-ghost { background: transparent; color: var(--dark); border-color: var(--line); }
.sec .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--dark); }

/* Sezioni Treemme */
.sec { padding: 80px 0; scroll-margin-top: 68px; }
.sec-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Terzo tono, per quando una sec-alt cadrebbe accanto a un'altra zona bianca (es. subito prima di una CTA chiara) */
.sec-tint { background: #EEF2F7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal2); margin-bottom: 12px; }
.sec-title { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.01em; color: var(--dark); line-height: 1.18; }
.sec-center { text-align: center; }
.sec-center .sec-label { display: block; }
.sec-center .sec-sub { margin: 0 auto; }
.sec-sub { font-size: 16px; color: var(--ink-body); max-width: 580px; line-height: 1.75; margin-top: 14px; }

/* Hero (Home) */
.hero { background: var(--dark); position: relative; overflow: hidden; padding: 148px 0 96px; }
.hero .w { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 60px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; color: #fff; margin-bottom: 24px; }
.hero h1 span { color: var(--teal); font-style: italic; }
.hero p { font-size: 18px; color: rgba(255,255,255,.75); line-height: 1.75; max-width: 58ch; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); aspect-ratio: 4/5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { max-width: 380px; margin: 0 auto 8px; }
}

/* Servizi — "cosa faccio" (Home), foto + card in un unico blocco */
.services-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: stretch; margin-top: 40px; }
.services-layout-photo { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(2,6,23,.15); min-height: 100%; }
.services-layout-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px; transition: transform .18s, border-color .18s, box-shadow .18s; }
.service-item:hover { transform: translateY(-3px); border-color: rgba(193,68,12,.4); box-shadow: var(--sh-md); }
.service-icon { width: 40px; height: 40px; border-radius: 9px; background: rgba(193,68,12,.1); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.service-item h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 6px; letter-spacing: -0.01em; }
.service-item p { font-size: 13.5px; color: var(--ink-body); line-height: 1.6; }
@media (max-width: 960px) {
    .services-layout { grid-template-columns: 1fr; }
    .services-layout-photo { max-width: 420px; margin: 0 auto; aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
    .services { grid-template-columns: 1fr; }
}

/* Loghi clienti — riga orizzontale (Home) */
.logos-sec { text-align: center; }
.logos-sec .sec-label { text-align: center; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 32px 0 18px; flex-wrap: wrap; }
.logo-tile { display: flex; align-items: center; justify-content: center; }
.logo-tile img { height: 96px; width: auto; max-width: 320px; object-fit: contain; display: block; filter: grayscale(.7); opacity: .8; transition: filter .5s, opacity .5s, transform .3s; }
.logo-tile:hover img, .logo-tile.is-active img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }
.logos-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); font-style: italic; }

/* Instagram — ultimo post (Home) */
.ig-widget { display: flex; align-items: center; gap: 48px; max-width: 980px; margin: 0 auto; padding: 48px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(2,6,23,.08); }
.ig-widget-info { flex: 1; min-width: 240px; }
.ig-widget-icon { width: 48px; height: 48px; border-radius: 11px; background: rgba(193,68,12,.1); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ig-widget-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.ig-widget-content { flex: 1.15; }
.ig-card { display: flex; align-items: center; gap: 24px; text-align: left; }
.ig-card-photo { flex-shrink: 0; width: 130px; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(2,6,23,.15); display: block; }
.ig-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ig-card-photo:hover img { transform: scale(1.05); }
.ig-card-text p { font-size: 14.5px; color: var(--ink-body); line-height: 1.7; margin-bottom: 14px; }
.ig-empty { font-size: 15px; color: var(--ink-soft); font-style: italic; }
.ig-follow { display: inline-block; margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal2); text-decoration: none; }
.ig-follow:hover { color: var(--teal); }
@media (max-width: 860px) {
    .ig-widget { flex-direction: column; padding: 36px 28px; text-align: center; }
    .ig-widget-icon { margin: 0 auto 16px; }
    .ig-card { flex-direction: column; text-align: center; }
    .ig-card-photo { width: 100%; max-width: 220px; }
}

/* CTA banda (Home, verso Contatti) */
.cta-band { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.8vw, 42px); font-weight: 600; color: #fff; letter-spacing: -0.01em; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.7; margin-bottom: 30px; }

/* Variante chiara e orizzontale — per chiudere una pagina senza ripetere il navy del footer subito sotto */
.cta-band-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band-icon { width: 48px; height: 48px; border-radius: 11px; background: rgba(193,68,12,.1); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cta-band-icon svg { width: 24px; height: 24px; stroke-width: 1.6; }
.cta-band-alt h2 { color: var(--dark); margin-bottom: 8px; }
.cta-band-alt p { color: var(--ink-body); margin-bottom: 0; }
.cta-band-alt .cta-band-inner { max-width: 980px; display: flex; align-items: center; justify-content: space-between; gap: 40px; text-align: left; }
.cta-band-alt .cta-band-text { flex: 1; }
.cta-band-alt .btn-alt { flex-shrink: 0; }
.btn-alt { background: var(--dark); color: #fff; box-shadow: 0 4px 0 var(--dark2); transition: transform .1s, box-shadow .1s; }
.btn-alt:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--dark2); }
.btn-alt:active { transform: translateY(4px); box-shadow: none; }
@media (max-width: 700px) {
    .cta-band-alt .cta-band-inner { flex-direction: column; text-align: center; }
    .cta-band-icon { margin: 0 auto 16px; }
}

/* Chi Sono */
/* Chi Sono — foto abbinata al testo */
.about-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; max-width: 960px; margin: 0 auto; }
.about-split-photo { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(2,6,23,.15); aspect-ratio: 4/5; }
.about-split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-split-text p { font-size: 18px; color: var(--ink-body); line-height: 1.8; margin-bottom: 18px; }
.about-split-text p:last-child { margin-bottom: 0; }
.about-split-reverse { grid-template-columns: 1.15fr .85fr; }
.about-split-reverse .about-split-photo { order: 2; }
.about-split-reverse .about-split-text { order: 1; }

@media (max-width: 860px) {
    .about-split { grid-template-columns: 1fr; }
    .about-split-photo { max-width: 340px; margin: 0 auto; }
    .about-split-reverse .about-split-photo,
    .about-split-reverse .about-split-text { order: initial; }
}

/* Chi Sono — blocco con piccola icona/illustrazione, non una foto grande */
.sec-element-block { display: flex; align-items: flex-start; gap: 28px; max-width: 700px; margin: 0 auto; }
.sec-element-icon { width: 64px; height: 64px; border-radius: 12px; background: rgba(193,68,12,.08); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-element-icon svg { width: 30px; height: 30px; stroke-width: 1.6; }
.sec-element-text p { font-size: 18px; color: var(--ink-body); line-height: 1.8; }
@media (max-width: 560px) {
    .sec-element-block { flex-direction: column; align-items: center; text-align: center; }
}

/* Page hero (pagine interne: Chi Sono, Progetti, Case study, Contatti) */
.page-hero { background: var(--dark); padding: 132px 0 52px; position: relative; overflow: hidden; scroll-margin-top: 68px; }
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; color: #fff; letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.15; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.75); line-height: 1.7; }
.page-hero .sec-label { color: var(--teal); }
.page-hero .cs-tags { margin-top: 18px; }
.page-hero .cs-tag { color: var(--teal); border-color: rgba(193,68,12,.5); }

/* Page hero — variante con anteprima immagine accanto al testo (case study) */
.page-hero-split .w { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero-split .page-hero-inner { max-width: none; }
.page-hero-shot { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.page-hero-shot img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
    .page-hero-split .w { grid-template-columns: 1fr; }
    .page-hero-shot { max-width: 420px; margin: 0 auto; }
}

/* Portfolio — indice a lista (progetti.php) */
.project-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); list-style: none; }
.project-entry { display: block; text-decoration: none; color: inherit; padding: 28px 4px; border-bottom: 1px solid var(--line); transition: background .15s; }
.project-entry:hover { background: var(--paper-raised); }
.project-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.project-entry-head h2 { font-family: var(--font-serif); font-size: 23px; font-weight: 600; color: var(--dark); letter-spacing: -0.01em; }
.project-entry-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal2); white-space: nowrap; }
.project-entry p { font-size: 14.5px; color: var(--ink-body); line-height: 1.6; max-width: 68ch; margin-bottom: 10px; }
.project-entry-link { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.project-entry:hover .project-entry-link { color: var(--teal2); }
.project-list-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); font-style: italic; margin-top: 24px; }

/* Case study — pagina di dettaglio progetto */
.cs-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cs-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal2); border: 1px solid var(--teal2); padding: 4px 10px; border-radius: 3px; }
.cs-body { max-width: 700px; margin: 0 auto; }
.cs-intro { font-size: 19px; font-style: italic; color: var(--ink-body); line-height: 1.7; margin-bottom: 48px; }
.cs-section { margin-bottom: 40px; }
.cs-section .sec-label { margin-bottom: 14px; }
.cs-section p { font-size: 17px; color: var(--ink-body); line-height: 1.8; margin-bottom: 16px; }
.cs-section p:last-child { margin-bottom: 0; }
.cs-cta { padding-top: 32px; border-top: 1px solid var(--line); }
.cs-cta p { font-size: 17px; color: var(--ink-body); }
.cs-cta a { color: var(--teal2); font-weight: 700; text-decoration: none; }
.cs-cta a:hover { text-decoration: underline; }

/* Contatti */
.contact-sec { background: var(--dark2); padding: 148px 0 88px; scroll-margin-top: 68px; }
.contact-sec .sec-label { color: var(--teal); }
.contact-sec .sec-title { color: #fff; }
.contact-sec .sec-sub { color: rgba(255,255,255,.75); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; max-width: 980px; margin: 44px auto 0; }
.contact-photo { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); aspect-ratio: 4/5; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.form-box { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-photo { max-width: 340px; margin: 0 auto; }
}
.fg { margin-bottom: 20px; }
.fg label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--dark); margin-bottom: 8px; }
.fc { width: 100%; padding: 13px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; font-size: 15px; font-family: var(--font-sans); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.fc::placeholder { color: var(--ink-soft); }
.fc:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(193,68,12,.18); }
.btn-send { width: 100%; padding: 15px; background: var(--teal); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 700; font-family: var(--font-sans); cursor: pointer; letter-spacing: 0.2px; box-shadow: 0 4px 0 var(--teal2); transition: transform .1s, box-shadow .1s; }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--teal2); }
.btn-send:active { transform: translateY(4px); box-shadow: none; }
.msg { padding: 14px 16px; border-radius: 6px; margin-bottom: 20px; font-weight: 700; font-size: 14px; }
.msg.ok  { background: rgba(193,68,12,.08); color: var(--teal2); border: 1px solid rgba(193,68,12,.3); }
.msg.err { background: rgba(239,68,68,.08); color: #b91c1c; border: 1px solid rgba(239,68,68,.3); }

/* Footer */
.ft { background: var(--dark); border-top: 1px solid rgba(255,255,255,.16); box-shadow: 0 -20px 40px -20px rgba(0,0,0,.35); padding: 56px 0 24px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ft-brand p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 14px; line-height: 1.7; max-width: 280px; }
.ft-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.ft-col a, .ft-col p { display: block; color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 9px; text-decoration: none; transition: color .15s; }
.ft-col a:hover { color: var(--teal); }
.ft-copy { text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 1px; }

/* Responsive Treemme */
@media (max-width: 860px) {
    .ft-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hd-inner { height: 60px; }
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .hero { padding: 108px 0 64px; }
    .hero-btns { flex-direction: column; }
    .services { grid-template-columns: 1fr; }
    .form-box { padding: 28px 20px; }
    .sec { padding: 56px 0; }
    .contact-sec { padding: 108px 0 56px; }
    .page-hero { padding: 96px 0 32px; }
    .project-entry-head { flex-direction: column; gap: 4px; }
}

/* =========================================================================
   STILI VETRINA SAAS (software_mytennis.php)
   ========================================================================= */

/* Header Vetrina MyTennis */
.tm-header { background: var(--mt-dark); padding: 16px 0; box-shadow: 0 4px 20px rgba(15,45,94,0.3); position: sticky; top: 0; z-index: 1000; }
.tm-nav-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.tm-logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 5px 0; }
.tm-nav-logo-img { height: 50px; width: auto; transition: transform 0.2s ease; }
.tm-logo-container:hover .tm-nav-logo-img { transform: scale(1.1); }
.tm-logo-text { color: #ffffff; font-weight: 800; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.tm-nav-links { display: flex; align-items: center; }
.tm-nav-links a { margin-left: 30px; text-decoration: none; color: #cbd5e1; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s ease; }
.tm-nav-links a:hover { color: #ffffff; }
.tm-btn-primary { display: inline-block; background: var(--mt-sky); color: #fff !important; padding: 10px 24px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s ease; border: 2px solid var(--mt-sky); cursor: pointer; }
.tm-btn-primary:hover { background: transparent; color: var(--mt-sky) !important; box-shadow: 0 8px 20px rgba(194,65,12,0.2); }

/* Footer Vetrina MyTennis */
.tm-footer { background: var(--mt-dark); color: #94a3b8; padding: 60px 0 30px; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.tm-footer-container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.tm-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 40px; margin-bottom: 30px; border-bottom: 1px solid rgba(194,65,12,0.12); }
.tm-footer p { margin: 5px 0; }
.tm-footer-bottom { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #4a6fa5; }

/* Hero Vetrina MyTennis */
.v-hero { background: var(--mt-dark); padding: 96px 0 0; overflow: hidden; position: relative; }
.v-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(194,65,12,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(194,65,12,0.05) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.v-hero-inner { position: relative; z-index: 1; text-align: center; }
.v-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(194,65,12,0.12); border: 1px solid rgba(194,65,12,0.28); color: var(--mt-sky); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; padding: 6px 14px; border-radius: 100px; margin-bottom: 32px; }
.v-hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 900; line-height: 1.05; color: #ffffff; letter-spacing: -2px; margin-bottom: 24px; max-width: 820px; margin-left: auto; margin-right: auto; }
.v-hero h1 .accent-green { color: var(--mt-sky-light); }
.v-hero-sub { font-size: 18px; color: #94a3b8; max-width: 600px; margin: 0 auto 48px; line-height: 1.7; font-weight: 400; }
.v-hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }
.v-btn-primary { background: var(--mt-sky); color: #fff; font-weight: 800; font-size: 15px; padding: 15px 28px; border-radius: var(--r-sm); text-decoration: none; display: inline-block; box-shadow: 0 4px 0 var(--mt-sky-dark), 0 8px 20px rgba(194,65,12,0.3); transition: transform 0.1s, box-shadow 0.1s; letter-spacing: -0.2px; }
.v-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--mt-sky-dark), 0 12px 28px rgba(194,65,12,0.35); }
.v-btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--mt-sky-dark); }
.v-btn-ghost { background: rgba(255,255,255,0.06); color: #e2e8f0; font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: var(--r-sm); text-decoration: none; display: inline-block; border: 1px solid rgba(255,255,255,0.14); transition: background 0.2s, border-color 0.2s; }
.v-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); }
.v-hero-mockup { position: relative; max-width: 1020px; margin: 0 auto; }
.v-mockup-frame { background: rgba(194,65,12,0.04); border: 1px solid rgba(194,65,12,0.14); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 10px 10px 0; box-shadow: 0 -20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(194,65,12,0.1); }
.v-mockup-bar { display: flex; align-items: center; gap: 6px; padding: 0 0 8px 4px; }
.v-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.v-mockup-dot:nth-child(1) { background: #ef4444; }
.v-mockup-dot:nth-child(2) { background: #f59e0b; }
.v-mockup-dot:nth-child(3) { background: #22c55e; }
.v-mockup-screen { border-radius: var(--r-sm) var(--r-sm) 0 0; overflow: hidden; display: block; width: 100%; height: auto; min-height: 300px; background: var(--bg); }
.v-mockup-screen img { width: 100%; height: auto; display: block; border-radius: var(--r-sm) var(--r-sm) 0 0; }

/* Resto sezioni Vetrina MyTennis */
.v-stats { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 0; }
.v-stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: center; }
.v-stat-item { padding: 12px 24px; border-right: 1px solid var(--border); }
.v-stat-item:last-child { border-right: none; }
.v-stat-num { display: block; font-size: 36px; font-weight: 900; color: var(--mt-dark); letter-spacing: -1.5px; line-height: 1; margin-bottom: 6px; }
.v-stat-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.v-section { padding: 96px 0; background: var(--bg); }
.v-section-alt { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.v-section-label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; color: var(--mt-mid); margin-bottom: 12px; display: block; }
.v-section-title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: var(--text-main); margin-bottom: 16px; }
.v-section-sub { font-size: 17px; color: var(--text-muted); max-width: 540px; line-height: 1.7; }
.v-text-center { text-align: center; }
.v-text-center .v-section-sub { margin: 0 auto; }
.v-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.v-feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 32px 28px; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; }
.v-feat-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--feat-color, var(--mt-green)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.v-feat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.v-feat-card:hover::after { transform: scaleX(1); }
.v-feat-icon { width: 52px; height: 52px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; background: var(--feat-bg, var(--mt-green-light)); }
.v-feat-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px; }
.v-feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.v-feat-card--wide { grid-column: 1 / -1; }
.v-feat-wide-inner { display: flex; align-items: flex-start; gap: 28px; }
.v-feat-card--wide .v-feat-icon { width: 64px; height: 64px; font-size: 30px; border-radius: var(--r-md); flex-shrink: 0; }
.v-feat-card--wide h3 { font-size: 20px; margin-bottom: 10px; }
.v-feat-card--wide p { font-size: 15px; max-width: 720px; }
.v-feat-wide-badge { display: inline-block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: #6d28d9; background: #ede9fe; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.v-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: center; }
.v-split.v-split-reverse { direction: rtl; }
.v-split.v-split-reverse > * { direction: ltr; }
.v-split-text .v-section-label { margin-bottom: 10px; }
.v-split-text .v-section-title { margin-bottom: 16px; }
.v-checklist { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.v-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-sub); font-weight: 500; line-height: 1.5; }
.v-check-icon { width: 22px; height: 22px; background: var(--mt-sky-bg); color: var(--mt-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; flex-shrink: 0; margin-top: 1px; }
.v-screenshot { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xl); border: 1px solid var(--border); background: var(--bg); }
.v-screenshot img { width: 100%; height: auto; display: block; }
.v-cta-section { padding: 96px 0; background: var(--mt-dark); position: relative; overflow: hidden; }
.v-cta-section::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(194,65,12,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(194,65,12,0.06) 1px, transparent 1px); background-size: 48px 48px; }
.v-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.v-cta-inner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: #ffffff; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 18px; }
.v-cta-inner p { color: #94a3b8; font-size: 17px; margin-bottom: 40px; line-height: 1.7; }
.v-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Responsive Vetrina MyTennis */
@media (max-width: 900px) {
    .v-features-grid { grid-template-columns: 1fr; gap: 14px; }
    .v-feat-card--wide { grid-column: 1; }
    .v-feat-wide-inner { flex-direction: column; gap: 16px; }
    .v-split { grid-template-columns: 1fr; gap: 40px; }
    .v-split.v-split-reverse { direction: ltr; }
    .v-stats-inner { grid-template-columns: 1fr; }
    .v-stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px; }
    .v-stat-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
    .tm-nav-links { display: none; }
    .tm-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .tm-footer-grid div { text-align: center !important; }
    .tm-logo-container { justify-content: center; }
}
@media (max-width: 640px) {
    .v-hero { padding: 64px 0 0; }
    .v-hero h1 { letter-spacing: -1px; }
    .v-hero-actions { flex-direction: column; align-items: center; }
    .v-btn-primary, .v-btn-ghost { width: 100%; max-width: 320px; text-align: center; }
    .v-section, .v-section-alt { padding: 64px 0; }
}

/* =========================================================================
   ANIMAZIONI ALLO SCROLL (sito corporate)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.cs-body .cs-section.reveal:nth-child(2) { transition-delay: .06s; }
.cs-body .cs-section.reveal:nth-child(3) { transition-delay: .12s; }
.cs-body .cs-section.reveal:nth-child(4) { transition-delay: .18s; }
.project-list .project-entry.reveal:nth-child(2) { transition-delay: .08s; }
.project-list .project-entry.reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}