/* ============================================================
   Manuela Durizzi — sistema "Respiro" (twilight sereno)
   Foglio di stile condiviso da tutte le pagine.
   ============================================================ */

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    /* Respiro — palette */
    --haze: #F0F1F7;
    --mist: #E4E7F2;
    --ink: #1E2138;
    --slate: #565A78;
    --iris: #5B5FA6;
    --iris-deep: #3B3E7A;
    --vapor: #9FB8C4;
    --sand: #E9D4BC;
    --line: rgba(59, 62, 122, 0.14);
    --white: #FFFFFF;

    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 20px;

    /* Alias legacy → così gli style="var(--vecchio)" inline restano validi */
    --cream: var(--haze);
    --cream-dark: var(--mist);
    --forest: var(--ink);
    --charcoal: var(--ink);
    --sage: var(--iris);
    --sage-light: var(--mist);
    --sage-dark: var(--iris);
    --terracotta: var(--iris-deep);
    --terracotta-light: var(--vapor);
    --terracotta-dark: var(--iris-deep);
    --gold: var(--sand);
    --text-primary: var(--ink);
    --text-secondary: var(--slate);
    --text-light: var(--slate);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--haze);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--iris); color: var(--white); }

a { color: inherit; }

/* Ambient glow (solo dove presente il <div class="ambient">) */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 45% at 50% 12%, rgba(91, 95, 166, 0.16), transparent 70%),
        radial-gradient(50% 40% at 85% 30%, rgba(159, 184, 196, 0.18), transparent 70%),
        radial-gradient(45% 40% at 10% 80%, rgba(233, 212, 188, 0.20), transparent 70%);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / nav ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(240, 241, 247, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 25px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 38px;
    list-style: none;
}

.nav-links a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--iris);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
    padding: 8px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: 0.3px;
    line-height: 1;
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
    background: var(--iris-deep);
    color: var(--white);
}

.btn:hover {
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(59, 62, 122, 0.28);
}

.btn-primary { background: var(--iris-deep); color: var(--white); }

.btn-secondary {
    background: transparent;
    color: var(--iris-deep);
    border-color: var(--line);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(91, 95, 166, 0.06);
    border-color: var(--iris-deep);
    color: var(--iris-deep);
    box-shadow: none;
}

/* ---------- Hero (home) ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 0 70px;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    animation: rise 1s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--iris-deep);
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    margin-bottom: 44px;
}

/* Breathing ring */
.breath {
    position: relative;
    width: min(300px, 66vw);
    aspect-ratio: 1;
    margin: 0 auto 40px;
    display: grid;
    place-items: center;
}

.breath-glow {
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 95, 166, 0.30), transparent 68%);
    filter: blur(6px);
    animation: breathe 14s ease-in-out infinite;
}

.breath-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--iris);
    background: radial-gradient(circle at 50% 42%, rgba(159, 184, 196, 0.28), rgba(240, 241, 247, 0.05) 70%);
    box-shadow: 0 24px 60px rgba(30, 33, 56, 0.12), inset 0 0 46px rgba(91, 95, 166, 0.12);
    animation: breathe 14s ease-in-out infinite;
}

.breath-ring::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(91, 95, 166, 0.18);
}

@keyframes breathe {
    0%   { transform: scale(0.72); }
    28.57% { transform: scale(1); }
    57.14% { transform: scale(1); }
    100% { transform: scale(0.72); }
}

.breath-phase {
    position: relative;
    z-index: 2;
    width: 0;
    height: 0;
}

.ph {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 23px;
    letter-spacing: 0.3px;
    color: var(--iris-deep);
    white-space: nowrap;
    opacity: 0;
}

.ph-in   { animation: phIn 14s ease-in-out infinite; }
.ph-hold { animation: phHold 14s ease-in-out infinite; }
.ph-out  { animation: phOut 14s ease-in-out infinite; }

@keyframes phIn   { 0%, 24% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes phHold { 0%, 30% { opacity: 0; } 34%, 53% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes phOut  { 0%, 59% { opacity: 0; } 63%, 96% { opacity: 1; } 100% { opacity: 0; } }

.ph-static { display: none; }

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(42px, 6.5vw, 74px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero h1 em { font-style: italic; color: var(--iris-deep); }

.hero-role {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(19px, 2.4vw, 24px);
    color: var(--slate);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 17px;
    color: var(--slate);
    line-height: 1.8;
    max-width: 540px;
    margin: 0 auto 38px;
}

.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-note {
    margin-top: 30px;
    font-size: 13.5px;
    color: var(--slate);
    letter-spacing: 0.3px;
}

.hero-note span { color: var(--iris-deep); font-weight: 600; }

/* ---------- Section base ---------- */
.section { padding: 100px 0; }

.section-alt {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-header {
    max-width: 640px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--iris-deep);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--slate);
    max-width: 580px;
    margin: 0 auto;
}

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
    padding: 160px 0 72px;
    text-align: center;
    background: linear-gradient(180deg, var(--mist), var(--haze));
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 18px;
    color: var(--slate);
    max-width: 660px;
    margin: 0 auto;
}

/* ---------- About (home) ---------- */
.about-content {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-portrait { position: relative; }

.about-portrait img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(30, 33, 56, 0.12);
}

.about-portrait::before {
    content: '';
    position: absolute;
    inset: 16px -16px -16px 16px;
    border-radius: 24px;
    border: 1px solid var(--iris);
    z-index: -1;
}

.about-text .section-label { color: var(--iris-deep); }

.about-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 22px;
}

.about-text p {
    font-size: 16px;
    color: var(--slate);
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-features { display: grid; gap: 14px; margin-top: 34px; }

.about-feature { display: flex; gap: 16px; align-items: center; }

.feature-icon {
    width: 46px;
    height: 46px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.feature-text p { font-size: 13.5px; color: var(--slate); margin: 0; }

/* ---------- Skills grid (home) ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    background: var(--haze);
    padding: 34px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: var(--transition);
}

.section-alt .skill-card { background: var(--white); }

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--iris);
    box-shadow: 0 24px 50px rgba(30, 33, 56, 0.08);
}

.skill-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    background: var(--mist);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.skill-card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
}

.skill-card p { font-size: 14.5px; color: var(--slate); line-height: 1.7; }

/* ---------- Timeline (home) ---------- */
.timeline { max-width: 780px; margin: 0 auto; position: relative; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 1.5px;
    background: var(--line);
}

.timeline-fill {
    position: absolute;
    left: 7px;
    top: 6px;
    width: 1.5px;
    height: 0;
    background: linear-gradient(180deg, var(--iris), var(--vapor));
    border-radius: 2px;
}

.timeline-item { position: relative; padding-left: 44px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--haze);
    border: 2px solid var(--line);
    border-radius: 50%;
    transition: border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

.section-alt .timeline-dot { background: var(--white); }

.timeline-dot.reached {
    border-color: var(--iris);
    background: var(--iris);
    box-shadow: 0 0 0 5px rgba(91, 95, 166, 0.14);
}

.timeline-date {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--iris-deep);
    margin-bottom: 6px;
}

.timeline-item h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 3px;
}

.timeline-company { font-size: 14.5px; color: var(--iris-deep); font-weight: 500; margin-bottom: 10px; }
.timeline-item > p:last-child { font-size: 14.5px; color: var(--slate); line-height: 1.8; }

/* ---------- Projects (home) ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.project-card {
    background: var(--haze);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.section-alt .project-card { background: var(--white); }

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--iris);
    box-shadow: 0 30px 60px rgba(30, 33, 56, 0.1);
}

.project-header { padding: 34px 34px 24px; border-bottom: 1px solid var(--line); }
.project-icon { font-size: 34px; margin-bottom: 16px; }

.project-header h3 {
    font-family: var(--font-serif);
    font-size: 25px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.project-subtitle { font-size: 14px; color: var(--iris-deep); font-weight: 500; }
.project-body { padding: 26px 34px 34px; }
.project-body p { font-size: 14.5px; color: var(--slate); line-height: 1.8; margin-bottom: 22px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.project-tag {
    padding: 6px 14px;
    background: var(--mist);
    color: var(--iris-deep);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

/* ---------- Location (home + contatti) ---------- */
.location-section { background: var(--white); }

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-card {
    background: var(--haze);
    border: 1px solid var(--line);
    padding: 44px 38px;
    border-radius: 24px;
    transition: var(--transition);
}

.section-alt .location-card { background: var(--white); }

.location-card:hover { border-color: var(--iris); box-shadow: 0 24px 50px rgba(30, 33, 56, 0.08); }

.location-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    background: var(--mist);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.location-card h3 {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 12px;
}

.location-card p { font-size: 14.5px; color: var(--slate); line-height: 1.75; margin-bottom: 20px; }

.location-link { color: var(--iris-deep); font-weight: 600; text-decoration: none; font-size: 14.5px; transition: var(--transition); }
.location-link:hover { color: var(--iris); }

.location-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 22px;
}

.location-text h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--iris-deep) !important;
}

.location-text p { color: var(--slate); line-height: 1.8; margin-bottom: 16px; }
.location-text strong { color: var(--ink); }

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(30, 33, 56, 0.1);
    height: 400px;
}

.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Content article (chi-sono, sottopagine servizi) ---------- */
.content-section { padding: 84px 0; }

.content-section.white {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.content-text { max-width: 820px; margin: 0 auto; }
.section-grid .content-text { max-width: none; }

.content-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin-bottom: 20px;
}

.content-text h3 {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 500;
    color: var(--ink);
    margin: 32px 0 14px;
}

.content-text p { font-size: 16.5px; color: var(--slate); line-height: 1.85; margin-bottom: 18px; }

.content-text ul { list-style: none; margin: 22px 0; }

.content-text ul li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--slate);
}

.content-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--iris);
    font-weight: 700;
    font-size: 16px;
}

.content-text ul li strong { color: var(--ink); }

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-wrapper { position: relative; }

.image-wrapper img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(30, 33, 56, 0.12);
}

.credentials-box,
.highlight-box {
    background: var(--mist);
    border: 1px solid var(--line);
    border-left: 3px solid var(--iris);
    padding: 32px 34px;
    border-radius: 16px;
    margin: 34px 0;
}

.credentials-box h3,
.highlight-box h3 { margin-top: 0; }

.credentials-box p,
.highlight-box p { color: var(--slate); }

/* ---------- Services grid (servizi.html) ---------- */
.services-section { padding: 90px 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 26px;
    margin-top: 10px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--iris);
    box-shadow: 0 30px 60px rgba(30, 33, 56, 0.1);
}

.service-header { padding: 34px 34px 22px; border-bottom: 1px solid var(--line); }
.service-icon { font-size: 34px; margin-bottom: 16px; }

.service-header h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0;
}

.service-body { padding: 26px 34px 34px; }
.service-body p { color: var(--slate); line-height: 1.8; margin-bottom: 18px; }
.service-body ul { list-style: none; margin: 18px 0; }

.service-body ul li {
    padding: 7px 0 7px 28px;
    position: relative;
    color: var(--slate);
    font-size: 14.5px;
}

.service-body ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--iris);
    font-weight: 700;
}

/* ---------- FAQ (faq.html) ---------- */
.faq-section { padding: 84px 0; }
.faq-section .container { max-width: 860px; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active { border-color: var(--iris); }

.faq-question {
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.3s;
}

.faq-question:hover { background: var(--mist); }

.faq-question h3 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

.faq-icon { font-size: 24px; color: var(--iris); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.active .faq-answer { max-height: 700px; }

.faq-answer-content { padding: 0 28px 24px; color: var(--slate); line-height: 1.8; }
.faq-answer-content strong { color: var(--ink); }
.faq-answer-content ul { margin-top: 12px; }

/* ---------- Contatti (contact-card) ---------- */
.contact-section { padding: 90px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 10px 0 0;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 34px 26px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover { transform: translateY(-5px); border-color: var(--iris); box-shadow: 0 24px 50px rgba(30, 33, 56, 0.08); }

.contact-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    background: var(--mist);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
}

.contact-card a { color: var(--slate); text-decoration: none; font-size: 15px; transition: var(--transition); word-break: break-word; }
.contact-card a:hover { color: var(--iris-deep); }
.contact-card p { color: var(--slate); }

/* Home: la sezione contatti è scura (section + contact-section) */
.section.contact-section {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: none;
}

.section.contact-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 95, 166, 0.5), transparent 65%);
    pointer-events: none;
}

.section.contact-section .container { position: relative; z-index: 1; }
.section.contact-section .section-label { color: var(--vapor); }
.section.contact-section .section-title { color: var(--white); }
.section.contact-section .section-subtitle { color: rgba(255, 255, 255, 0.72); }
.section.contact-section .contact-grid { margin-top: 54px; }

.section.contact-section .contact-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.12);
}

.section.contact-section .contact-card:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--vapor); }
.section.contact-section .contact-icon { background: rgba(255, 255, 255, 0.08); }
.section.contact-section .contact-card h3 { color: var(--white); }
.section.contact-section .contact-card a { color: rgba(255, 255, 255, 0.78); }
.section.contact-section .contact-card a:hover { color: var(--white); }

/* ---------- CTA bands (servizi, faq, contatti) ---------- */
.cta-section, .cta-box {
    background: var(--ink);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section { padding: 90px 0; }
.cta-box { padding: 54px 40px; border-radius: 24px; margin: 56px 0; }

.cta-section::before, .cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 95, 166, 0.45), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.cta-section .container, .cta-box > * { position: relative; z-index: 1; }

.cta-section h2, .cta-box h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p, .cta-box p { font-size: 18px; color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }

.cta-section .btn, .cta-box .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-section .btn:hover, .cta-box .btn:hover { background: var(--mist); color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }

.cta-section .btn-secondary, .cta-box .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.cta-section .btn-secondary:hover, .cta-box .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* ---------- Footer ---------- */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.55);
    padding: 46px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p { font-size: 13.5px; margin: 6px 0; }
footer strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--iris);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-content { grid-template-columns: 1fr; gap: 46px; }
    .about-portrait { max-width: 380px; margin: 0 auto; }
    .about-portrait::before { inset: 12px -12px -12px 12px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .section-grid { grid-template-columns: 1fr; gap: 40px; }
    .location-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 24px;
        right: 24px;
        background: var(--white);
        flex-direction: column;
        padding: 26px;
        border-radius: 16px;
        border: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(30, 33, 56, 0.12);
        gap: 20px;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 110px 0 60px; }
    .page-hero { padding: 130px 0 60px; }
    .skills-grid { grid-template-columns: 1fr; }
    .section { padding: 72px 0; }
    .content-section { padding: 64px 0; }
}

@media (max-width: 480px) {
    .btn { width: 100%; justify-content: center; }
    .btn-group { flex-direction: column; }
    .project-header, .project-body { padding-left: 24px; padding-right: 24px; }
    .location-card { padding: 34px 26px; }
    .cta-section .btn, .cta-box .btn { width: auto; }
    .cta-box { padding: 40px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .breath-ring, .breath-glow { animation: none; transform: scale(0.9); }
    .ph-in, .ph-hold, .ph-out { display: none; }
    .ph-static { display: block; opacity: 1; }
    .hero-inner { animation: none; }
    * { transition-duration: 0.01ms !important; }
}
