/* ═══════════════════════════════════════════════════════════
   Erika Testa, PhD — Portfolio
   Smart Responsive CSS — Fluid Design
   Approccio: clamp() per tutto, safe-area, touch-aware,
   hover solo desktop, tap target 44px+, orientation-aware
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Variables ─────────────────────────────────── */
:root {
    --bg: #F6F4EF;
    --bg2: #EDEAE1;
    --bg3: #E3DFD3;
    --ink: #0C0C0A;
    --ink2: #282824;
    --muted: #78766E;
    --gold: #B07B2A;
    --gold2: #C9952E;
    --gold3: #D4A84B;
    --gp: rgba(176, 123, 42, .1);
    --blue: #1C3F8A;
    --b: rgba(12, 12, 10, .08);
    --b2: rgba(12, 12, 10, .15);

    /* Fluid spacing scale — si adatta da 320px a 1600px */
    --sp-xs: clamp(8px, 1vw, 14px);
    --sp-sm: clamp(12px, 1.5vw, 24px);
    --sp-md: clamp(16px, 2.5vw, 40px);
    --sp-lg: clamp(24px, 4vw, 72px);
    --sp-xl: clamp(40px, 6vw, 100px);
    --sp-2xl: clamp(56px, 8vw, 120px);

    /* Fluid page gutter */
    --gutter: clamp(16px, 5vw, 72px);

    /* Fluid section padding */
    --sec-y: clamp(56px, 7vw, 120px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.75;
    overflow-x: hidden;
    /* Safe area per notch iPhone/Android */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Cursore custom solo su desktop con pointer fine */
@media (pointer: fine) {
    body { cursor: none; }
}

/* ── Custom Cursor (solo pointer: fine) ────────────────── */
.cur {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

@media (pointer: fine) {
    .cur { display: block; }
}

.ca {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.cb {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(176, 123, 42, .4);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s, border-color .3s;
}

/* ── Navigation ────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: clamp(12px, 1.5vw, 22px) var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .4s, box-shadow .4s;
    /* Safe area top per notch */
    padding-top: max(clamp(12px, 1.5vw, 22px), env(safe-area-inset-top));
}

nav.s {
    background: rgba(246, 244, 239, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--b2);
}

.nav-brand {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.52rem, .6vw, .68rem);
    letter-spacing: clamp(.14em, .2vw, .22em);
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.nav-r {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
}

.nav-status {
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ndot {
    width: 7px;
    height: 7px;
    background: #3AAF6A;
    border-radius: 50%;
    animation: pdot 2s infinite;
}

.nav-cta {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.5rem, .55vw, .62rem);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gold);
    text-decoration: none;
    padding: clamp(8px, 1vw, 10px) clamp(14px, 1.5vw, 22px);
    /* Min tap target 44px per touch */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background .3s;
}

@media (hover: hover) {
    .nav-cta:hover { background: var(--gold2); }
}

/* Language switch */
.lang-switch {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.52rem, .55vw, .62rem);
    letter-spacing: .12em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 44px;
    padding: 0 4px;
    transition: opacity .3s;
}

.lang-switch-active {
    color: var(--gold);
    font-weight: 500;
}

.lang-switch-sep {
    color: var(--b2);
}

.lang-switch-alt {
    color: var(--muted);
    transition: color .3s;
}

@media (hover: hover) {
    .lang-switch:hover .lang-switch-alt { color: var(--gold); }
}

/* Nascondi status su schermi < 900px */
@media (max-width: 900px) {
    .nav-status { display: none; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    min-height: clamp(480px, 75vh, 720px);
    padding: clamp(90px, 10vw, 140px) var(--gutter) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.hero-geo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── ET Watermark testo ────────────────────────────────── */
.hero-bg-text {
    position: absolute;
    right: clamp(16px, 4vw, 72px);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(100px, 12vw, 200px);
    line-height: 1;
    letter-spacing: .02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(176, 123, 42, .1);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    /* Quadrato con solo bordo */
    border: 1.5px solid rgba(176, 123, 42, .1);
    padding: clamp(16px, 2vw, 36px) clamp(20px, 2.5vw, 44px);
    opacity: 0;
    animation: etReveal 1.6s .5s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes etReveal {
    from {
        opacity: 0;
        transform: translateY(-50%) translateY(20px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
        filter: blur(0);
    }
}

.hero-glow {
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: clamp(280px, 45vw, 700px);
    height: clamp(280px, 45vw, 700px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 123, 42, .14) 0%, rgba(176, 123, 42, .05) 40%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: clamp(600px, 60vw, 960px);
    padding-bottom: var(--sp-lg);
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.5rem, .55vw, .63rem);
    letter-spacing: clamp(.16em, .2vw, .28em);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--sp-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-tag::before,
.hero-tag::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.hero-name {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 148px);
    line-height: .88;
    letter-spacing: -.03em;
    margin-bottom: clamp(18px, 2vw, 28px);
}

.hero-name strong {
    font-weight: 500;
    color: var(--gold);
}

.hero-degree {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.55rem, .6vw, .7rem);
    letter-spacing: clamp(.08em, .1vw, .14em);
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-md);
}

.hero-desc {
    font-size: clamp(.88rem, 1vw, 1.05rem);
    color: var(--ink2);
    line-height: 1.7;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--sp-md);
    border-left: 3px solid var(--gold);
    padding-left: clamp(14px, 1.5vw, 20px);
    text-align: left;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(5px, .6vw, 8px);
    margin-bottom: var(--sp-md);
}

.htag {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.48rem, .5vw, .58rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: clamp(3px, .4vw, 5px) clamp(8px, 1vw, 12px);
    border: 1px solid var(--b2);
    color: var(--ink2);
    transition: background .25s, color .25s;
    white-space: nowrap;
}

@media (hover: hover) {
    .htag:hover {
        background: var(--ink);
        color: var(--bg);
        border-color: var(--ink);
    }
}

.hero-cta {
    display: flex;
    gap: clamp(10px, 1vw, 14px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.58rem, .6vw, .68rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: clamp(12px, 1.2vw, 16px) clamp(20px, 2.5vw, 36px);
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.btn-ln {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.55rem, .58vw, .65rem);
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: clamp(12px, 1.2vw, 16px) clamp(16px, 2vw, 28px);
    border: 1px solid var(--b2);
    color: var(--ink2);
    text-decoration: none;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, color .3s;
}

@media (hover: hover) {
    .btn-main:hover { background: var(--gold2); }
    .btn-ln:hover { border-color: var(--ink); color: var(--ink); }
}

/* Hero Stats Bar */
.hero-stats-bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--b2);
    border-bottom: 1px solid var(--b2);
    background: rgba(246, 244, 239, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-left: 0;
    padding-right: 0;
}

.hstat {
    padding: clamp(16px, 2vw, 32px) clamp(16px, 2.5vw, 52px);
    border-right: 1px solid var(--b2);
    transition: background .3s;
}

.hstat:last-child {
    border-right: none;
}

@media (hover: hover) {
    .hstat:hover { background: rgba(176, 123, 42, .05); }
}

.hstat-n {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 300;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 4px;
}

.hstat-t {
    font-size: clamp(.72rem, .8vw, .88rem);
    color: var(--ink2);
    line-height: 1.3;
}

.hstat-t span {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: clamp(.42rem, .48vw, .54rem);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}

.scroll-hint {
    position: absolute;
    bottom: 120px;
    right: var(--gutter);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Mono', monospace;
    font-size: .55rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
}

.scroll-hint::before {
    content: '';
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--gold), transparent);
    animation: scrollb 2s infinite;
}

/* ── Sections Common ───────────────────────────────────── */
.sec {
    padding: var(--sec-y) var(--gutter);
}

.slabel {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.52rem, .55vw, .62rem);
    letter-spacing: clamp(.2em, .28vw, .32em);
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slabel::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

/* ── Profile Section ───────────────────────────────────── */
#profilo {
    background: var(--bg2);
    border-top: 1px solid var(--b2);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 3.5vw, 48px);
    align-items: start;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.why-grid > div:first-child h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.05;
    margin-bottom: 16px;
}

.why-grid > div:first-child h2 em {
    font-style: italic;
    color: var(--gold);
}

.why-grid > div:first-child p {
    color: var(--muted);
    font-size: clamp(.82rem, .88vw, .92rem);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.why-list {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

.wi {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: clamp(14px, 1.5vw, 22px);
    align-items: start;
    padding: clamp(18px, 2vw, 28px) 0;
    border-bottom: 1px solid var(--b);
}

.wi:last-child {
    border-bottom: none;
}

.wi-ico {
    width: 42px;
    height: 42px;
    background: var(--gp);
    border: 1px solid rgba(176, 123, 42, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: .58rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.wi-b h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.2;
}

.wi-b p {
    color: var(--muted);
    font-size: clamp(.8rem, .84vw, .88rem);
    line-height: 1.75;
}

/* ── Skills Section ────────────────────────────────────── */
.sk-sec {
    background: var(--ink);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}

.sk-sec::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 clamp(100px, 14vw, 200px) clamp(100px, 14vw, 200px) 0;
    border-color: transparent rgba(176, 123, 42, .06) transparent transparent;
    pointer-events: none;
}

.sk-sec::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: clamp(80px, 11vw, 160px) 0 0 clamp(80px, 11vw, 160px);
    border-color: transparent transparent transparent rgba(176, 123, 42, .04);
    pointer-events: none;
}

.sk-hd {
    max-width: 1320px;
    margin: 0 auto clamp(32px, 3.5vw, 52px);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(20px, 3.5vw, 56px);
    align-items: end;
}

.sk-hd h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.0;
    color: var(--bg);
}

.sk-hd p {
    color: rgba(246, 244, 239, .4);
    font-size: clamp(.82rem, .86vw, .9rem);
    line-height: 1.8;
}

.sk-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1;
}

.sg {
    background: var(--ink);
    padding: clamp(24px, 2.8vw, 40px) clamp(18px, 2.2vw, 32px);
    transition: background .35s;
}

@media (hover: hover) {
    .sg:hover { background: #111109; }
}

.sg-cat {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.48rem, .5vw, .57rem);
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold2);
    margin-bottom: clamp(12px, 1.4vw, 18px);
    padding-bottom: clamp(10px, 1.2vw, 14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sg-list {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, .7vw, 9px);
}

.sgi {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: clamp(.78rem, .82vw, .87rem);
    color: rgba(246, 244, 239, .65);
    line-height: 1.4;
}

.sgi::before {
    content: '\2014';
    color: var(--gold2);
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    flex-shrink: 0;
}

.sgi strong {
    color: var(--bg);
    font-weight: 400;
}

/* ── Languages Section ─────────────────────────────────── */
.lang-sec {
    background: var(--bg);
}

.lang-in {
    max-width: 1320px;
    margin: 0 auto;
}

.lang-in > h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(26px, 3.2vw, 46px);
    line-height: 1.0;
    margin-bottom: var(--sp-lg);
}

.lang-in > h2 em {
    font-style: italic;
    color: var(--gold);
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--b2);
    border: 1px solid var(--b2);
}

.lang-card {
    background: var(--bg);
    padding: clamp(22px, 2.5vw, 36px) clamp(18px, 2.2vw, 32px);
    transition: background .3s;
}

@media (hover: hover) {
    .lang-card:hover { background: var(--bg2); }
}

.lang-flag {
    font-family: 'DM Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: clamp(10px, 1.2vw, 16px);
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(176, 123, 42, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(176, 123, 42, .06);
}

.lang-name {
    font-family: 'Fraunces', serif;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 4px;
}

.lang-level-label {
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: clamp(8px, 1vw, 14px);
}

.lang-bar {
    height: 3px;
    background: var(--b2);
    margin-bottom: clamp(8px, 1vw, 12px);
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    transition: width .8s ease;
}

.lang-detail {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.48rem, .5vw, .55rem);
    letter-spacing: .08em;
    color: var(--muted);
    line-height: 1.7;
}

/* ── Publications Section ──────────────────────────────── */
.pub-sec {
    background: var(--bg2);
}

.pub-in {
    max-width: 1320px;
    margin: 0 auto;
}

.pub-hd {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 5vw, 72px);
    margin-bottom: clamp(32px, 4vw, 60px);
}

.pub-hd h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.0;
}

.pub-hd p {
    color: var(--muted);
    font-size: clamp(.82rem, .86vw, .9rem);
    line-height: 1.8;
    padding-top: 6px;
}

.pub-list {
    border-top: 1px solid var(--b2);
}

a.pc {
    text-decoration: none;
    color: inherit;
}

.pc {
    display: grid;
    grid-template-columns: clamp(40px, 4.5vw, 64px) 1fr auto;
    gap: clamp(12px, 1.7vw, 24px);
    align-items: start;
    padding: clamp(18px, 2vw, 26px) 0;
    border-bottom: 1px solid var(--b);
    transition: background .2s;
}

@media (hover: hover) {
    .pc:hover {
        background: rgba(12, 12, 10, .025);
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.pc-n {
    font-family: 'Fraunces', serif;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 300;
    color: var(--b2);
    line-height: 1;
    padding-top: 3px;
}

.pc-title {
    font-family: 'Lora', serif;
    font-size: clamp(.85rem, .9vw, .96rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--ink);
}

.pc-auth {
    font-size: clamp(.72rem, .76vw, .8rem);
    color: var(--muted);
    font-style: italic;
    margin-bottom: 4px;
}

.pc-auth strong {
    color: var(--ink2);
    font-style: normal;
}

.pc-meta {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.48rem, .5vw, .56rem);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}

.pbadge {
    font-family: 'DM Mono', monospace;
    font-size: .52rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 9px;
    align-self: start;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

.pb-top { background: var(--gold); color: #fff; }
.pb-q1 { background: var(--blue); color: #fff; }
.pb-new { border: 1px solid var(--gold); color: var(--gold); }

.pub-more {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.48rem, .52vw, .58rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    padding: clamp(14px, 1.6vw, 22px) 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pub-more::before {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: var(--b);
}

/* ── Path/Timeline Section ─────────────────────────────── */
.path-in {
    max-width: 1320px;
    margin: 0 auto;
}

.path-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
}

.pch {
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: clamp(18px, 2vw, 28px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pch::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.pclist {
    padding-left: 20px;
    border-left: 1px solid var(--b2);
}

.pci {
    padding: 0 0 clamp(18px, 2vw, 28px) clamp(16px, 2vw, 26px);
    position: relative;
}

.pci::before {
    content: '';
    position: absolute;
    left: -4.5px;
    top: 5px;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: var(--bg);
    transition: background .3s;
}

@media (hover: hover) {
    .pci:hover::before { background: var(--gold); }
}

.pci-y {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.5rem, .52vw, .56rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3px;
}

.pci-t {
    font-size: clamp(.88rem, .92vw, .96rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 2px;
}

.pci-w {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.5rem, .54vw, .58rem);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.pci-d {
    font-size: clamp(.78rem, .82vw, .85rem);
    color: var(--muted);
    line-height: 1.65;
}

/* ── Positions Section ─────────────────────────────────── */
.pos-sec {
    background: var(--bg3);
    position: relative;
    overflow: hidden;
}

.pos-sec::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 clamp(120px, 18vw, 280px) clamp(120px, 18vw, 280px) 0;
    border-color: transparent rgba(176, 123, 42, .07) transparent transparent;
    pointer-events: none;
}

.pos-in {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pos-in > h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.0;
    max-width: 620px;
    margin-bottom: 16px;
}

.pos-in > h2 em {
    font-style: italic;
    color: var(--gold);
}

.pos-in > p {
    color: var(--muted);
    max-width: 640px;
    font-size: clamp(.82rem, .86vw, .9rem);
    line-height: 1.9;
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--b2);
    border: 1px solid var(--b2);
    margin-top: clamp(32px, 3.5vw, 52px);
}

.pos-card {
    background: var(--bg);
    padding: clamp(28px, 3.5vw, 52px) clamp(20px, 3vw, 44px);
    position: relative;
    overflow: hidden;
    transition: background .4s;
}

.pos-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    transform: scaleX(0);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

/* Hover solo su dispositivi con pointer fine */
@media (hover: hover) {
    .pos-card:hover { background: var(--ink); }
    .pos-card:hover::after { transform: scaleX(1); }
    .pos-card:hover .pos-n { color: rgba(246, 244, 239, .04); }
    .pos-card:hover .pos-tag { color: rgba(246, 244, 239, .35); border-color: rgba(246, 244, 239, .1); }
    .pos-card:hover .pos-title,
    .pos-card:hover .pos-body { color: var(--bg); }
    .pos-card:hover .pos-li li { color: rgba(246, 244, 239, .6); }
    .pos-card:hover .pos-li li::before { color: var(--gold3); }
    .pos-card:hover .pos-arrow { color: var(--gold2); }
    .pos-card:hover .pos-arrow::after { transform: translateX(5px); }
}

.pos-card-full {
    grid-column: 1 / -1;
}

.pos-n {
    font-family: 'Fraunces', serif;
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 700;
    color: rgba(12, 12, 10, .04);
    position: absolute;
    top: 10px;
    right: clamp(12px, 1.5vw, 22px);
    line-height: 1;
    transition: color .4s;
}

.pos-tag {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.48rem, .52vw, .57rem);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(176, 123, 42, .22);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: clamp(12px, 1.4vw, 18px);
    transition: all .4s;
}

.pos-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(20px, 2.5vw, 34px);
    line-height: 1.1;
    margin-bottom: clamp(10px, 1.2vw, 16px);
    transition: color .4s;
}

.pos-body {
    color: var(--muted);
    font-size: clamp(.8rem, .84vw, .87rem);
    line-height: 1.7;
    margin-bottom: clamp(14px, 1.5vw, 20px);
    transition: color .4s;
}

.pos-li {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(5px, .6vw, 7px);
    margin-bottom: clamp(18px, 2vw, 28px);
}

.pos-li li {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.52rem, .55vw, .6rem);
    letter-spacing: .08em;
    color: var(--ink2);
    display: flex;
    gap: 9px;
    line-height: 1.5;
    transition: color .4s;
}

.pos-li li::before {
    content: '\2713';
    color: var(--gold);
    flex-shrink: 0;
    transition: color .4s;
}

.pos-arrow {
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .4s;
    text-decoration: none;
    min-height: 44px;
}

.pos-arrow::after {
    content: '\2192';
    transition: transform .3s;
}

/* ── Contact Section ───────────────────────────────────── */
.ct-sec {
    background: var(--ink);
    color: var(--bg);
    padding: var(--sp-2xl) var(--gutter);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ct-sec::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 clamp(100px, 16vw, 240px) clamp(100px, 16vw, 240px);
    border-color: transparent transparent rgba(176, 123, 42, .08) transparent;
}

.ct-sec::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: clamp(60px, 9vw, 130px) clamp(60px, 9vw, 130px) 0 0;
    border-color: rgba(176, 123, 42, .05) transparent transparent transparent;
}

.ct-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 45vw, 660px);
    height: clamp(300px, 45vw, 660px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 123, 42, .09) 0%, transparent 65%);
    pointer-events: none;
}

.ct-in {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ct-in h2 {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(36px, 6vw, 76px);
    line-height: .95;
    margin-bottom: clamp(12px, 1.4vw, 18px);
}

.ct-in h2 em {
    font-style: italic;
    color: var(--gold2);
}

.ct-in p {
    color: rgba(246, 244, 239, .48);
    font-size: clamp(.86rem, .92vw, .98rem);
    line-height: 1.8;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

.ct-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    justify-content: center;
    flex-wrap: wrap;
}

.ct-link-main {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.75rem, 1vw, 1rem);
    letter-spacing: .08em;
    color: var(--bg);
    text-decoration: none;
    border-bottom: 1px solid rgba(246, 244, 239, .3);
    padding-bottom: 3px;
    transition: border-color .3s, color .3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.ct-link-sec {
    font-family: 'DM Mono', monospace;
    font-size: clamp(.6rem, .65vw, .7rem);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(246, 244, 239, .4);
    text-decoration: none;
    transition: color .3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

@media (hover: hover) {
    .ct-link-main:hover { color: var(--gold2); border-color: var(--gold2); }
    .ct-link-sec:hover { color: var(--bg); }
}

/* ── Footer ────────────────────────────────────────────── */
footer {
    background: #07070A;
    padding: clamp(14px, 1.5vw, 22px) var(--gutter);
    padding-bottom: max(clamp(14px, 1.5vw, 22px), env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'DM Mono', monospace;
    font-size: clamp(.44rem, .48vw, .54rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(246, 244, 239, .16);
}

/* ── Reveal Animations ─────────────────────────────────── */
.rv, .rv2, .rv3, .wi, .pc, .pci {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

/* Riduce animazioni per chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
    .rv, .rv2, .rv3, .wi, .pc, .pci {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.rv.vis, .rv2.vis, .rv3.vis, .wi.vis, .pc.vis, .pci.vis {
    opacity: 1;
    transform: none;
}

.rv2 { transition-delay: .1s; }
.rv3 { transition-delay: .2s; }

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes scrollb {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: .3; transform: scaleY(.5); }
}

@keyframes pdot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(58, 175, 106, .4); }
    50% { box-shadow: 0 0 0 7px rgba(58, 175, 106, 0); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Solo layout breaks, non sizing
   (sizing è già fluid via clamp)
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet ~1024px — layout a colonna singola ─────────── */
@media (max-width: 1024px) {
    .hero-bg-text { display: none; }
    .scroll-hint { display: none; }

    .hero-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .sk-hd {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sk-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lang-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pub-hd {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pc {
        grid-template-columns: 40px 1fr;
    }

    .pbadge { display: none; }

    .path-cols {
        grid-template-columns: 1fr;
    }

    .pos-grid {
        grid-template-columns: 1fr;
    }

    .pos-card-full {
        grid-column: auto;
    }

    footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ── Tablet portrait ~768px ────────────────────────────── */
@media (max-width: 768px) {
    .hero-tag::after { display: none; }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-main,
    .btn-ln {
        text-align: center;
        justify-content: center;
    }

    .ct-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* ── Mobile ~600px — single column tutto ───────────────── */
@media (max-width: 600px) {
    .sk-grid {
        grid-template-columns: 1fr;
    }

    .lang-grid {
        grid-template-columns: 1fr;
    }

    .pc {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .pc-n { display: none; }
}

/* ── Landscape mobile — hero compatto ──────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-inner {
        padding-bottom: 20px;
    }

    .hero-name {
        font-size: clamp(36px, 8vh, 64px);
    }

    .hero-desc {
        display: none;
    }

    .hero-tags {
        display: none;
    }

    .hero-stats-bar {
        grid-template-columns: repeat(4, 1fr);
    }

    .scroll-hint { display: none; }
}

/* ── Print ─────────────────────────────────────────────── */
@media print {
    .cur, .hero-geo, .hero-glow, .ct-glow,
    .scroll-hint, nav { display: none !important; }

    body {
        font-size: 11pt;
        color: #000;
        background: #fff;
    }

    .hero { min-height: auto; padding-top: 20px; }
    .sk-sec { background: #fff; color: #000; }
    .sk-sec .sg { background: #fff; }
    .sgi { color: #333; }
    .sgi strong { color: #000; }
    .sg-cat { color: var(--gold); }
    .ct-sec { background: #fff; color: #000; }
    .pos-card:hover { background: #fff; }

    .rv, .rv2, .rv3, .wi, .pc, .pci {
        opacity: 1 !important;
        transform: none !important;
    }
}
