/* ============================================================
   INDEX.CSS — Stili specifici della Home Page
   ============================================================ */

/* ==== HERO ==== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; z-index: 10; padding-top: calc(var(--nav-height, 140px) + 1.2rem); padding-bottom: 4rem; }
#matrix-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 140, 255, 0.06) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; padding: 2rem; opacity: 1; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; }
.hero-title .line1 { color: var(--text-primary); }
.hero-title .line2 { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title .ampersand { font-family: var(--font-display); color: var(--accent-green); -webkit-text-fill-color: var(--accent-green); font-weight: 900; font-size: 0.85em; }
.hero-subtitle { font-family: var(--font-code); font-size: clamp(0.85rem, 1.5vw, 1.05rem); color: var(--text-secondary); max-width: 650px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-subtitle .highlight { color: var(--accent-cyan); border-bottom: 1px dashed rgba(0, 212, 255, 0.3); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: bounce 2s infinite; }
.scroll-indicator span { font-family: var(--font-code); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 3px; }
.scroll-arrow { font-size: 1.8rem; color: var(--accent-cyan); text-shadow: 0 0 15px rgba(0, 212, 255, 0.4); line-height: 1; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-15px); } 60% { transform: translateX(-50%) translateY(-8px); } }

/* ==== ABOUT ====
   Il gradiente è applicato direttamente su .about (non su ::before) per evitare
   problemi di z-index: -1 che manderebbe lo sfondo dietro il background del body.
   Parte da var(--bg-abyss) = identico all'hero → transizione invisibile tra le sezioni.
   Poi vira verso il blu scuro caratteristico della sezione Chi Sono. */
.about { position: relative; padding: 7rem 2rem; background: linear-gradient(to bottom, var(--bg-abyss) 0%, #0d2040 20%, #102a50 40%, #152f5a 65%, #0e2545 85%, #0c2040 100%); scroll-margin-top: 110px; }

/* ==== ABOUT HERO PHOTO ====
   Foto panoramica nella colonna destra sopra il terminal.
   height: 300px — altezza contenuta per non dominare il layout.
     Con section-inner fisso a max 1200px, la colonna è ~530px:
     rapporto 530:300 = 1.77:1 → object-fit:cover ritaglia leggermente i lati.
   object-position: center center — mostra il centro della foto
     (volto, monitor, gatto con logo "Just Bytes" nel cestino).
   margin-bottom: 2rem — spazio dal terminal sotto.
   border-radius e box-shadow coerenti con .terminal-card. */
.about-hero-photo {
    width: 100%;
    height: 330px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center center;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* align-items: stretch — la colonna destra si estende all'altezza della sinistra.
   Necessario per position:sticky sul terminal-card.
   gap: 5rem — spazio maggiore tra le due colonne per equilibrio visivo. */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: stretch; }
.profile-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-cyan); box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); margin-bottom: 2rem; display: block; }
.about-subtitle { font-family: var(--font-code); font-size: 0.88rem; color: var(--accent-cyan); font-style: italic; margin-bottom: 2rem; line-height: 1.6; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1rem; }
.about-text .bold-accent { color: var(--text-primary); font-weight: 700; }
.about-perche { margin: 1.8rem 0; display: flex; flex-direction: column; gap: 1.4rem; }
.about-perche-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.about-perche-icon { color: var(--accent-cyan); font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.about-perche-item strong { display: block; color: var(--text-primary); font-size: 0.9rem; margin-bottom: 0.25rem; }
.about-perche-item p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; margin-bottom: 0; }
.stack-formation { font-family: var(--font-code); font-size: 0.78rem; color: var(--text-muted); margin-top: 2.5rem; text-align: center; line-height: 1.7; }
.services-perche { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--glass-border); }
.timeline { margin-top: 2.5rem; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), var(--accent-cyan)); }
.timeline-item { position: relative; margin-bottom: 1.8rem; padding-left: 16px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 12px rgba(0, 212, 255, 0.4); }
.timeline-year { font-family: var(--font-code); font-size: 0.8rem; font-weight: 700; color: var(--accent-cyan); }
.timeline-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.terminal-card { background: var(--bg-abyss); border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); position: sticky; top: 120px; }
.terminal-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--glass-border); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28ca41; }
.terminal-title { font-family: var(--font-code); font-size: 0.72rem; color: var(--text-muted); margin-left: 8px; }
.terminal-body { padding: 1.5rem; font-family: var(--font-code); font-size: 0.74rem; line-height: 1.9; overflow-x: auto; }
.terminal-line { white-space: nowrap; }
.terminal-line { color: var(--text-secondary); }
.terminal-line .key { color: var(--accent-purple); }
.terminal-line .str { color: var(--accent-green); }
.terminal-line .num { color: var(--accent-orange); }
.terminal-line .comment { color: var(--text-muted); font-style: italic; }
/* Link "Approfondisci" nella sezione Chi Sono della landing — testo, allineato a destra */
.about-read-more { display: block; text-align: right; margin-top: 0.8rem; font-family: var(--font-code); font-size: 0.85rem; font-weight: 500; color: var(--accent-cyan); text-decoration: none; opacity: 0.8; transition: opacity 0.25s ease, letter-spacing 0.25s ease; }
.about-read-more:hover { opacity: 1; letter-spacing: 0.5px; }

/* ==== SERVICES ==== */
.services { background: linear-gradient(180deg, var(--bg-abyss) 0%, #060e14 50%, var(--bg-abyss) 100%); position: relative; padding: 3.5rem 2rem; scroll-margin-top: 150px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2.5rem 2rem; transition: all 0.4s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); opacity: 0; transition: opacity 0.4s ease; }
.service-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--accent-cyan); box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.15); }
.service-card::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.service-card:hover::after { opacity: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.5rem; }
.service-icon.django { background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.2); }
.service-icon.ai { background: rgba(123, 104, 238, 0.1); border: 1px solid rgba(123, 104, 238, 0.2); }
.service-icon.web    { background: rgba(0, 212, 255, 0.1);  border: 1px solid rgba(0, 212, 255, 0.2); }
.service-icon.devops { background: rgba(255, 107, 53, 0.1); border: 1px solid rgba(255, 107, 53, 0.2); }
.service-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.2rem; }
.service-tag { font-family: var(--font-code); font-size: 0.65rem; padding: 3px 10px; border-radius: 50px; background: rgba(0, 212, 255, 0.08); color: var(--accent-cyan); border: 1px solid rgba(0, 212, 255, 0.15); }

/* ==== PROJECTS ====
   padding: 7rem — ridotto per avvicinare le sezioni (era 10rem).
   ::before: sfondo viola scuro con clip-path opposto alla sezione about (angolo invertito).
     polygon(0 0%, 100% 4%...) — angolo in alto a destra anziché in alto a sinistra. */
.projects { position: relative; padding: 7rem 2rem; }
/* clip-path: il bottom-left NON viene tagliato (0 100% invece di 0 96%).
   Questo evita il triangolo scuro dove .stack (margin-top:-4rem) si sovrappone:
   il corner inferiore sinistro di projects rimane coperto dal gradiente viola,
   visibile attraverso il taglio superiore di .stack::before. */
.projects::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, #180e3a 0%, #1d1248 40%, #150c35 70%, #110a2e 100%); clip-path: polygon(0 0%, 100% 4%, 100% 100%, 0 100%); z-index: -1; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { background: var(--bg-abyss); border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--accent-cyan); box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.15); }
/* Card cliccabili (con data-project-id): mostra cursore pointer + hint "Dettagli →" */
.project-card[data-project-id] { cursor: pointer; }
.project-card[data-project-id]::after { content: 'Dettagli →'; position: absolute; bottom: 1rem; right: 1.2rem; font-family: var(--font-code); font-size: 0.68rem; color: var(--accent-cyan); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.project-card[data-project-id] { position: relative; }
.project-card[data-project-id]:hover::after { opacity: 0.75; }
.project-preview { height: 180px; position: relative; overflow: hidden; }
.project-preview-bg { width: 100%; height: 100%; display: flex; align-items: flex-start; font-family: var(--font-code); font-size: 0.62rem; color: var(--text-muted); padding: 1.2rem 1.5rem; line-height: 1.55; white-space: pre-wrap; overflow: hidden; }
.project-preview-bg.p1 { background: linear-gradient(135deg, #0d1a3a, #1a0d3a); }
.project-preview-bg.p2 { background: linear-gradient(135deg, #0d3a1a, #0d1a3a); }
.project-preview-bg.p3 { background: linear-gradient(135deg, #3a1a0d, #1a0d3a); }
.project-status { position: absolute; top: 12px; right: 12px; font-family: var(--font-code); font-size: 0.65rem; padding: 4px 12px; border-radius: 50px; font-weight: 600; }
.project-status.live { background: rgba(0, 255, 136, 0.1);   color: var(--accent-green);  border: 1px solid rgba(0, 255, 136, 0.3); }
.project-status.beta { background: rgba(0, 212, 255, 0.1);   color: var(--accent-cyan);   border: 1px solid rgba(0, 212, 255, 0.3); }
.project-status.lab  { background: rgba(123, 104, 238, 0.1); color: var(--accent-purple); border: 1px solid rgba(123, 104, 238, 0.3); }
.project-info { padding: 1.5rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.project-info h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-info p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.6; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span { font-family: var(--font-code); font-size: 0.63rem; padding: 3px 9px; border-radius: 4px; background: rgba(123, 104, 238, 0.1); color: var(--accent-purple); border: 1px solid rgba(123, 104, 238, 0.2); }
.projects-cta { display: flex; gap: 1.5rem; margin-top: 4.5rem; flex-wrap: wrap; }
.project-visit { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-code); font-size: 0.75rem; color: var(--accent-cyan); text-decoration: none; margin-top: auto; padding-top: 1rem; opacity: 0.7; transition: opacity 0.3s ease, gap 0.3s ease; }
.project-card:hover .project-visit { opacity: 1; gap: 10px; }

/* ==== BLOG (sezione landing) ====
   Stesso pattern di about/projects/stack: ::before con sfondo proprio + clip-path.
   Angolo: polygon(0 4%, 100% 0%...) — stesso verso di about/stack (alto a sinistra).
   Sfondo blu navy scuro — distinto dal teal di stack e dal viola di projects. */
.blog { position: relative; padding: 7rem 2rem; }
.blog::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, #080f28 0%, #0b1538 40%, #070e20 70%, #050c18 100%); clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0 100%); z-index: -1; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Card generica */
.blog-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px; padding: 2rem; transition: all 0.4s ease; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { border-color: var(--accent-cyan); transform: translateY(-8px) scale(1.02); box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.15); }
.blog-card:hover .blog-read-more { gap: 10px; }

/* Prima card: occupa tutta la larghezza con griglia interna 2 colonne */
.blog-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.blog-card:first-child h3 { font-size: 1.55rem; }

/* Pannello codice nella prima card */
.blog-code-block { background: var(--bg-abyss); border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; height: 100%; min-height: 180px; display: flex; flex-direction: column; }
.blog-code-header { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--glass-border); }
.blog-code-title { font-family: var(--font-code); font-size: 0.65rem; color: var(--text-muted); margin-left: 8px; }
.blog-code-pre { font-family: var(--font-code); font-size: 0.78rem; color: var(--text-muted); line-height: 1.8; padding: 1.2rem 1.4rem; margin: 0; white-space: pre-wrap; flex: 1; }

/* Meta, testi, tags */
.blog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1rem; }
.blog-category { font-family: var(--font-code); font-size: 0.68rem; padding: 3px 10px; border-radius: 50px; background: rgba(0, 255, 136, 0.1); color: var(--accent-green); border: 1px solid rgba(0, 255, 136, 0.2); }
.blog-date { font-family: var(--font-code); font-size: 0.72rem; color: var(--text-muted); }
.blog-read-time { font-family: var(--font-code); font-size: 0.68rem; color: var(--text-muted); opacity: 0.7; }
.blog-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-primary); line-height: 1.3; }
.blog-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.8rem; }
.blog-tag { font-family: var(--font-code); font-size: 0.62rem; padding: 2px 8px; border-radius: 4px; background: rgba(123, 104, 238, 0.1); color: var(--accent-purple); border: 1px solid rgba(123, 104, 238, 0.2); }
.blog-read-more { font-family: var(--font-code); font-size: 0.78rem; color: var(--accent-cyan); margin-top: 1rem; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.3s ease; }
.blog-cta { margin-top: 3rem; }

/* ==== TECH STACK ====
   margin-top: -4rem → stack si sovrappone al fondo di projects, coprendo il gap
   visibile tra le due clip-path opposte. z-index: 1 garantisce che stack
   venga renderizzato sopra projects nell'area di sovrapposizione.
   padding-top: 11rem = 7rem originale + 4rem compensazione per il margin negativo. */
.stack { position: relative; padding: 11rem 2rem 7rem; margin-top: -4rem; z-index: 1; }
.stack::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, #072535 0%, #092d40 40%, #07222e 70%, #061e28 100%); clip-path: polygon(0 4%, 100% 0%, 100% 96%, 0 100%); z-index: -1; }
.stack .section-label, .stack .section-title, .stack .section-desc { text-align: center; justify-content: center; }
.stack .section-label::before { display: none; }
.stack .section-desc { margin-left: auto; margin-right: auto; }
.stack-badge { display: flex; justify-content: center; margin-bottom: 1rem; }
.stack-badge span { font-family: var(--font-code); font-size: 0.72rem; padding: 6px 18px; border-radius: 50px; color: var(--accent-cyan); border: 1px solid rgba(0, 212, 255, 0.25); background: rgba(0, 212, 255, 0.06); text-transform: uppercase; letter-spacing: 3px; }
.arsenal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 0.5rem; }
.arsenal-card { background: rgba(11, 18, 60, 0.97); border: 1px solid var(--glass-border); border-radius: 16px; padding: 2rem 1.5rem; transition: all 0.4s ease; }
.arsenal-card:hover { border-color: var(--accent-cyan); transform: translateY(-10px) scale(1.02); box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.15); }
.arsenal-icon { font-size: 2.2rem; margin-bottom: 1.2rem; }
.arsenal-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent-cyan); margin-bottom: 0.6rem; }
.arsenal-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.2rem; }
.arsenal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.arsenal-tag { font-family: var(--font-code); font-size: 0.65rem; padding: 4px 11px; border-radius: 6px; background: rgba(0, 212, 255, 0.08); color: var(--accent-cyan); border: 1px solid rgba(0, 212, 255, 0.18); }

/* ==== HONEYPOT — campo trappola per bot, invisibile agli utenti ====
   position:absolute + left:-9999px → fuori schermo, non occupa spazio.
   opacity:0 + tabindex:-1 → non interagibile da tastiera. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ==== CONTACT FORM FEEDBACK ====
   Nascosto di default, mostrato da JS dopo submit con classe .success/.error */
.contact-feedback { font-family: var(--font-code); font-size: 0.82rem; margin-bottom: 1rem; padding: 0.8rem 1.2rem; border-radius: 8px; display: none; line-height: 1.5; }
.contact-feedback.success { display: block; background: rgba(0,255,136,0.08); color: var(--accent-green); border: 1px solid rgba(0,255,136,0.2); }
.contact-feedback.error   { display: block; background: rgba(255,107,53,0.08); color: var(--accent-orange); border: 1px solid rgba(255,107,53,0.2); }

/* ==== CONTACT ==== */
.contact { background: linear-gradient(180deg, var(--bg-abyss) 0%, #060c20 50%, var(--bg-abyss) 100%); padding: 3.5rem 2rem; position: relative; scroll-margin-top: 150px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-grid .reveal-left { display: flex; flex-direction: column; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: auto; }
.contact-link { font-family: var(--font-code); font-size: 0.88rem; color: var(--text-secondary); text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 10px; border: 1px solid var(--glass-border); background: var(--glass-bg); transition: all 0.3s ease; }
.contact-link:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); transform: translateX(6px); }
.contact-link .icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(0, 212, 255, 0.08); font-size: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); font-family: var(--font-display); font-size: 0.92rem; transition: var(--transition); outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0, 212, 255, 0.1); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ==== RESPONSIVE ==== */
@media (max-width: 1024px) {
    .arsenal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet ≤1080px: colonne singole + padding ridotto + clip-path meno aggressivo */
@media (max-width: 1080px) {
    .about-grid, .contact-grid, .blog-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card:first-child { grid-template-columns: 1fr; }
    .projects::before { clip-path: polygon(0 0%, 100% 2%, 100% 100%, 0 100%); }
    .blog::before { clip-path: polygon(0 2%, 100% 0%, 100% 100%, 0 100%); }
    .terminal-card { position: static; }
    /* Sezioni con clip-path (about, projects, blog): padding 4.5rem */
    .about, .projects, .blog { padding: 4.5rem 1.5rem; }
    /* Stack: mantieni margin-top negativo, riduci solo il padding */
    .stack { padding: 7.5rem 1.5rem 4.5rem; margin-top: -3rem; }
    .services, .contact { padding: 3rem 1.5rem; }
}

/* Mobile ≤600px: layout colonna singola + padding minimo */
@media (max-width: 600px) {
    .projects-grid, .services-grid, .arsenal-grid { grid-template-columns: 1fr; }
    /* Sezioni con clip-path: 3.5rem; flat: 2.5rem */
    .about, .projects, .blog { padding: 3.5rem 1.2rem; }
    .stack { padding: 6rem 1.2rem 3.5rem; margin-top: -2rem; }
    .services, .contact { padding: 2.5rem 1.2rem; }
    /* Foto profilo leggermente più piccola su mobile */
    .profile-photo { width: 130px; height: 130px; }
}
