/*
=========================================================
Wishlist Price Tracker
Foglio di stile principale
=========================================================

Struttura prevista:

WishlistPriceTracker/
├── index.html
├── privacy.html
├── support.html
├── styles.css
└── images/

Il sito utilizza esclusivamente HTML e CSS nativi.
Non sono presenti framework esterni.
*/


/* =====================================================
   1. Variabili globali
   ===================================================== */

:root {
    color-scheme: light dark;

    --font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Helvetica Neue",
        Arial,
        sans-serif;

    --background-primary: #ffffff;
    --background-secondary: #f5f5f7;
    --background-tertiary: #fbfbfd;

    --surface-primary: rgba(255, 255, 255, 0.88);
    --surface-secondary: #ffffff;
    --surface-elevated: rgba(255, 255, 255, 0.96);

    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-strong: rgba(0, 0, 0, 0.14);

    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: rgba(0, 113, 227, 0.12);

    --success: #34c759;
    --warning: #ff9f0a;

    --device-border: #1d1d1f;
    --device-screen: #f5f5f7;

    --shadow-small:
        0 4px 14px rgba(0, 0, 0, 0.06);

    --shadow-medium:
        0 18px 48px rgba(0, 0, 0, 0.1);

    --shadow-large:
        0 40px 100px rgba(0, 0, 0, 0.16);

    --container-width: 1180px;
    --header-height: 72px;

    --radius-small: 12px;
    --radius-medium: 22px;
    --radius-large: 34px;
    --radius-pill: 999px;

    --transition-fast: 180ms ease;
    --transition-medium: 300ms ease;
}


/* =====================================================
   2. Dark Mode automatica
   ===================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #000000;
        --background-secondary: #101010;
        --background-tertiary: #161617;

        --surface-primary: rgba(28, 28, 30, 0.88);
        --surface-secondary: #1c1c1e;
        --surface-elevated: rgba(28, 28, 30, 0.97);

        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-tertiary: #86868b;

        --border-color: rgba(255, 255, 255, 0.1);
        --border-color-strong: rgba(255, 255, 255, 0.18);

        --accent: #2997ff;
        --accent-hover: #40a9ff;
        --accent-soft: rgba(41, 151, 255, 0.16);

        --device-border: #3a3a3c;
        --device-screen: #111111;

        --shadow-small:
            0 4px 18px rgba(0, 0, 0, 0.35);

        --shadow-medium:
            0 20px 60px rgba(0, 0, 0, 0.42);

        --shadow-large:
            0 44px 110px rgba(0, 0, 0, 0.55);
    }
}


/* =====================================================
   3. Reset e impostazioni di base
   ===================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;

    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.5;

    color: var(--text-primary);
    background: var(--background-primary);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

p {
    color: var(--text-secondary);
}

::selection {
    color: #ffffff;
    background: var(--accent);
}


/* =====================================================
   4. Accessibilità
   ===================================================== */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 12px 18px;
    border-radius: var(--radius-pill);

    color: #ffffff;
    background: var(--accent);

    font-weight: 700;

    transform: translateY(-160%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 6px;
}


/* =====================================================
   5. Layout generale
   ===================================================== */

.container {
    width: min(calc(100% - 48px), var(--container-width));
    margin-inline: auto;
}

.section {
    padding: 128px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 64px;
}

.section-heading-centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 24px;

    font-size: clamp(44px, 6vw, 74px);
    line-height: 0.98;
    font-weight: 750;
}

.section-heading p:last-child {
    max-width: 680px;
    margin-bottom: 0;

    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.55;
}

.section-heading-centered p:last-child {
    margin-right: auto;
    margin-left: auto;
}

.eyebrow {
    margin-bottom: 16px;

    color: var(--accent);

    font-size: 15px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =====================================================
   6. Header e navigazione
   ===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: var(--header-height);

    border-bottom: 1px solid var(--border-color);

    background: var(--surface-primary);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    min-width: 0;

    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-logo {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border-radius: 11px;

    box-shadow: var(--shadow-small);
}

.brand-name {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;

    font-size: 14px;
    font-weight: 550;
}

.main-navigation a {
    color: var(--text-secondary);

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}


/* =====================================================
   7. Pulsanti e collegamenti
   ===================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 13px 24px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    font-size: 16px;
    line-height: 1.2;
    font-weight: 650;
    text-align: center;

    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.button:hover {
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    color: #ffffff;
    background: var(--accent);

    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.button-primary:hover {
    background: var(--accent-hover);

    box-shadow: 0 14px 30px rgba(0, 113, 227, 0.3);
}

.button-secondary {
    color: var(--text-primary);
    border-color: var(--border-color-strong);
    background: var(--surface-secondary);
}

.button-secondary:hover {
    border-color: var(--text-tertiary);
}

.button-icon {
    width: 21px;
    height: 21px;

    fill: currentColor;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--accent);

    font-weight: 650;

    transition:
        gap var(--transition-fast),
        color var(--transition-fast);
}

.text-link:hover {
    gap: 11px;
    color: var(--accent-hover);
}


/* =====================================================
   8. Hero
   ===================================================== */

.hero {
    position: relative;
    isolation: isolate;

    min-height: calc(100vh - var(--header-height));
    padding: 94px 0 120px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(0, 113, 227, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 15% 5%,
            rgba(112, 49, 255, 0.09),
            transparent 28%
        ),
        var(--background-tertiary);
}

.hero::after {
    position: absolute;
    right: -20%;
    bottom: -35%;
    z-index: -1;

    width: 720px;
    height: 720px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(52, 199, 89, 0.1),
            transparent 65%
        );

    content: "";
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 72px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    max-width: 780px;
    margin-bottom: 28px;

    font-size: clamp(54px, 7.3vw, 92px);
    line-height: 0.94;
    font-weight: 780;
}

.hero-description {
    max-width: 680px;
    margin-bottom: 36px;

    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-bottom: 22px;
}

.hero-note {
    margin-bottom: 0;

    color: var(--text-tertiary);

    font-size: 14px;
}

.hero-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 650px;
}

.hero-glow {
    position: absolute;
    inset: 8% 0 0;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 113, 227, 0.24),
            rgba(0, 113, 227, 0.04) 44%,
            transparent 70%
        );

    filter: blur(10px);
}

.device-main {
    width: min(335px, 82%);
    transform: rotate(3deg);

    animation: device-float 6s ease-in-out infinite;
}


/* =====================================================
   9. Mockup iPhone
   ===================================================== */

.device {
    position: relative;

    width: 100%;
    max-width: 310px;

    margin-inline: auto;
}

.device-frame {
    position: relative;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 54px;

    background:
        linear-gradient(
            145deg,
            #4a4a4c,
            #141416 55%,
            #303033
        );

    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.06),
        var(--shadow-large);
}

.device-frame::before {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 4;

    width: 92px;
    height: 27px;

    border-radius: var(--radius-pill);

    background: #000000;

    content: "";
    transform: translateX(-50%);
}

.device-screen {
    position: relative;

    aspect-ratio: 420 / 860;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 44px;

    background: var(--device-screen);
}

.device-screen img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =====================================================
   10. Notifica nel Hero
   ===================================================== */

.price-notification {
    position: absolute;
    right: -24px;
    bottom: 105px;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 13px;

    width: min(330px, 88%);
    padding: 15px 17px;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    background: var(--surface-elevated);

    box-shadow: var(--shadow-medium);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    animation: notification-float 5s ease-in-out infinite;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    border-radius: 14px;

    color: #ffffff;
    background: linear-gradient(145deg, #0071e3, #5e5ce6);
}

.notification-icon svg {
    width: 23px;
    height: 23px;

    fill: currentColor;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}

.notification-content strong {
    overflow: hidden;

    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notification-content span {
    overflow: hidden;

    color: var(--text-secondary);

    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =====================================================
   11. Fascia vantaggi
   ===================================================== */

.trust-strip {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);

    background: var(--background-primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-item {
    padding: 34px 38px;
}

.trust-item + .trust-item {
    border-left: 1px solid var(--border-color);
}

.trust-item strong,
.trust-item span {
    display: block;
}

.trust-item strong {
    margin-bottom: 6px;

    font-size: 16px;
}

.trust-item span {
    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.45;
}


/* =====================================================
   12. Come funziona
   ===================================================== */

.how-it-works {
    background: var(--background-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.step-card {
    position: relative;

    min-height: 340px;
    padding: 34px;

    overflow: hidden;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);

    background: var(--background-secondary);

    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium),
        border-color var(--transition-medium);
}

.step-card:hover {
    border-color: var(--border-color-strong);

    box-shadow: var(--shadow-medium);

    transform: translateY(-8px);
}

.step-number {
    position: absolute;
    top: 24px;
    right: 28px;

    color: var(--text-tertiary);

    font-size: 15px;
    font-weight: 700;
}

.step-icon,
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin-bottom: 48px;

    border-radius: 18px;

    color: var(--accent);
    background: var(--accent-soft);
}

.step-icon svg,
.feature-icon svg {
    width: 29px;
    height: 29px;

    fill: currentColor;
}

.step-card h3 {
    margin-bottom: 14px;

    font-size: 28px;
    line-height: 1.08;
}

.step-card p {
    margin-bottom: 0;

    font-size: 16px;
    line-height: 1.6;
}


/* =====================================================
   13. Funzionalità
   ===================================================== */

.features {
    background: var(--background-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 520px;
    padding: 44px;

    overflow: hidden;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);

    background: var(--surface-secondary);

    box-shadow: var(--shadow-small);

    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium);
}

.feature-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-6px);
}

.feature-card-large {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 60px;

    min-height: 600px;
}

.feature-card .feature-icon {
    margin-bottom: 34px;
}

.feature-label {
    margin-bottom: 12px;

    color: var(--accent);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feature-card h3 {
    max-width: 600px;
    margin-bottom: 20px;

    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
}

.feature-card:not(.feature-card-large) h3 {
    font-size: clamp(32px, 3.2vw, 44px);
}

.feature-card p:not(.feature-label) {
    max-width: 580px;

    font-size: 18px;
    line-height: 1.58;
}

.feature-card .text-link {
    margin-top: auto;
    padding-top: 20px;
}


/* =====================================================
   14. Grafico dimostrativo
   ===================================================== */

.price-chart {
    position: relative;

    padding: 30px;

    border: 1px solid var(--border-color);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            var(--background-tertiary),
            var(--background-secondary)
        );

    box-shadow: var(--shadow-medium);
}

.chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 30px;
}

.chart-header span {
    color: var(--text-secondary);

    font-size: 14px;
}

.chart-header strong {
    font-size: 24px;
}

.price-chart svg {
    width: 100%;
    overflow: visible;
}

.chart-grid-line {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1;
}

.chart-area {
    fill: rgba(0, 113, 227, 0.12);
}

.chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-width: 5;
}


/* =====================================================
   15. Mini notifica
   ===================================================== */

.mini-notification {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: auto;
    padding: 16px;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    background: var(--background-secondary);

    box-shadow: var(--shadow-small);
}

.mini-notification img {
    flex: 0 0 auto;

    border-radius: 12px;
}

.mini-notification div {
    min-width: 0;
}

.mini-notification strong,
.mini-notification span {
    display: block;
}

.mini-notification strong {
    margin-bottom: 2px;

    font-size: 14px;
}

.mini-notification span {
    overflow: hidden;

    color: var(--text-secondary);

    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =====================================================
   16. Screenshot
   ===================================================== */

.screenshots {
    overflow: hidden;

    background: var(--background-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 34px;
}

.screenshot-item {
    margin: 0;
    text-align: center;
}

.screenshot-item:nth-child(2) {
    padding-top: 68px;
}

.screenshot-item .device {
    margin-bottom: 30px;
}

.screenshot-item figcaption {
    max-width: 280px;
    margin-inline: auto;

    color: var(--text-secondary);

    font-size: 15px;
    line-height: 1.55;
}


/* =====================================================
   17. Privacy
   ===================================================== */

.privacy-highlight {
    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(52, 199, 89, 0.16),
            transparent 30%
        ),
        var(--background-secondary);
}

.privacy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 90px;
}

.privacy-content h2 {
    max-width: 760px;
    margin-bottom: 26px;

    font-size: clamp(46px, 6vw, 76px);
    line-height: 0.98;
}

.privacy-content > p:not(.eyebrow) {
    max-width: 700px;
    margin-bottom: 34px;

    font-size: 20px;
    line-height: 1.58;
}

.privacy-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.privacy-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(330px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;

    border: 1px solid var(--border-color);
    border-radius: 44px;

    color: var(--success);
    background: var(--surface-secondary);

    box-shadow: var(--shadow-medium);

    transform: rotate(3deg);
}

.privacy-symbol svg {
    width: 62%;
    height: 62%;

    fill: currentColor;
}


/* =====================================================
   18. Call to action finale
   ===================================================== */

.final-cta {
    position: relative;

    overflow: hidden;

    color: #ffffff;
    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255, 255, 255, 0.22),
            transparent 30%
        ),
        linear-gradient(145deg, #0057b8, #0071e3 45%, #5e5ce6);
}

.final-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 960px;

    text-align: center;
}

.final-cta-icon {
    margin-bottom: 28px;

    border-radius: 24px;

    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.final-cta .eyebrow,
.final-cta p {
    color: rgba(255, 255, 255, 0.82);
}

.final-cta h2 {
    margin-bottom: 24px;

    font-size: clamp(46px, 6vw, 76px);
    line-height: 0.98;
}

.final-cta p:not(.eyebrow) {
    max-width: 680px;
    margin-bottom: 34px;

    font-size: 20px;
}

.final-cta .button-primary {
    color: var(--text-primary);
    background: #ffffff;

    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.final-cta .button-primary:hover {
    background: #f5f5f7;
}


/* =====================================================
   19. Footer
   ===================================================== */

.site-footer {
    padding: 72px 0 28px;

    border-top: 1px solid var(--border-color);

    background: var(--background-secondary);
}

.footer-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(480px, 1.2fr);
    gap: 80px;

    padding-bottom: 54px;
}

.footer-brand p {
    max-width: 440px;
    margin-top: 20px;
    margin-bottom: 0;

    font-size: 15px;
}

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column strong {
    margin-bottom: 4px;

    font-size: 14px;
}

.footer-column a {
    color: var(--text-secondary);

    font-size: 14px;

    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;

    padding-top: 26px;

    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin-bottom: 0;

    color: var(--text-tertiary);

    font-size: 12px;
    line-height: 1.55;
}

.footer-disclaimer {
    max-width: 660px;
    text-align: right;
}


/* =====================================================
   20. Stili per pagine interne
   Privacy e Supporto
   ===================================================== */

.page-hero {
    padding: 96px 0 72px;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(0, 113, 227, 0.15),
            transparent 30%
        ),
        var(--background-tertiary);
}

.page-hero-content {
    max-width: 860px;
}

.page-hero h1 {
    margin-bottom: 24px;

    font-size: clamp(52px, 7vw, 86px);
    line-height: 0.96;
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;

    font-size: clamp(19px, 2.1vw, 23px);
    line-height: 1.55;
}

.page-content {
    padding: 80px 0 120px;
}

.content-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    align-items: start;
    justify-content: center;
    gap: 70px;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 34px);

    display: flex;
    flex-direction: column;
    gap: 8px;

    padding: 20px;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    background: var(--background-secondary);
}

.content-sidebar a {
    padding: 9px 12px;

    border-radius: 10px;

    color: var(--text-secondary);

    font-size: 14px;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.content-sidebar a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.legal-content,
.support-content {
    min-width: 0;
}

.content-section {
    padding: 0 0 56px;
}

.content-section + .content-section {
    padding-top: 56px;

    border-top: 1px solid var(--border-color);
}

.content-section h2 {
    margin-bottom: 22px;

    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

.content-section h3 {
    margin-top: 34px;
    margin-bottom: 14px;

    font-size: 23px;
    line-height: 1.15;
}

.content-section p,
.content-section li {
    font-size: 17px;
    line-height: 1.72;
}

.content-section ul,
.content-section ol {
    padding-left: 24px;
}

.content-section li + li {
    margin-top: 10px;
}

.info-box {
    margin: 32px 0;
    padding: 24px;

    border: 1px solid var(--border-color);
    border-radius: 18px;

    background: var(--background-secondary);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.last-updated {
    color: var(--text-tertiary);

    font-size: 14px;
}


/* =====================================================
   21. FAQ
   ===================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 18px;

    background: var(--surface-secondary);
}

.faq-item summary {
    position: relative;

    padding: 22px 58px 22px 24px;

    cursor: pointer;

    font-weight: 650;

    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 24px;

    width: 12px;
    height: 12px;

    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);

    content: "";

    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: translateY(-25%) rotate(225deg);
}

.faq-answer {
    padding: 0 24px 24px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   22. Supporto e contatti
   ===================================================== */

.support-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.support-card {
    padding: 28px;

    border: 1px solid var(--border-color);
    border-radius: 22px;

    background: var(--background-secondary);
}

.support-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.support-card p:last-child {
    margin-bottom: 0;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 30px;

    border: 1px solid var(--border-color);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            var(--background-secondary),
            var(--background-tertiary)
        );
}

.contact-card h3 {
    margin: 0 0 8px;
}

.contact-card p {
    margin-bottom: 0;
}


/* =====================================================
   23. Animazioni
   ===================================================== */

@keyframes device-float {
    0%,
    100% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-14px);
    }
}

@keyframes notification-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


/* =====================================================
   24. Tablet
   ===================================================== */

@media (max-width: 1024px) {
    .section {
        padding: 104px 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-visual {
        min-height: 620px;
    }

    .price-notification {
        right: max(4%, 20px);
    }

    .feature-card-large {
        grid-template-columns: 1fr;
    }

    .price-chart {
        width: 100%;
    }

    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .privacy-symbol {
        width: min(300px, 70%);
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .content-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 44px;
    }
}


/* =====================================================
   25. Tablet piccoli
   ===================================================== */

@media (max-width: 820px) {
    :root {
        --header-height: 64px;
    }

    .container {
        width: min(calc(100% - 36px), var(--container-width));
    }

    .brand-name {
        max-width: 230px;
    }

    .main-navigation a:not(:last-child) {
        display: none;
    }

    .hero {
        padding-top: 72px;
    }

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

    .trust-item {
        padding: 26px 0;
    }

    .trust-item + .trust-item {
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }

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

    .step-card {
        min-height: auto;
    }

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

    .feature-card-large {
        grid-column: auto;
    }

    .feature-card {
        min-height: 460px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 74px;
    }

    .screenshot-item:nth-child(2) {
        padding-top: 0;
    }

    .footer-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }

    .footer-disclaimer {
        text-align: left;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;

        display: none;
    }
}


/* =====================================================
   26. Smartphone
   ===================================================== */

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .section {
        padding: 82px 0;
    }

    .site-header {
        height: 62px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;

        border-radius: 9px;
    }

    .brand-name {
        max-width: 185px;

        font-size: 14px;
    }

    .main-navigation {
        gap: 0;
    }

    .main-navigation a:last-child {
        padding: 8px 12px;

        border-radius: var(--radius-pill);

        background: var(--background-secondary);
    }

    .hero {
        min-height: auto;
        padding: 60px 0 88px;
    }

    .hero-content h1 {
        font-size: clamp(48px, 14vw, 68px);
    }

    .hero-description {
        font-size: 19px;
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 530px;
    }

    .device-main {
        width: min(290px, 82%);
    }

    .device-frame {
        border-radius: 47px;
    }

    .device-screen {
        border-radius: 38px;
    }

    .price-notification {
        right: 0;
        bottom: 64px;

        width: 94%;
    }

    .section-heading {
        margin-bottom: 46px;
    }

    .section-heading h2,
    .privacy-content h2,
    .final-cta h2 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .section-heading p:last-child,
    .privacy-content > p:not(.eyebrow),
    .final-cta p:not(.eyebrow) {
        font-size: 18px;
    }

    .step-card,
    .feature-card {
        padding: 28px;
        border-radius: 26px;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card h3,
    .feature-card:not(.feature-card-large) h3 {
        font-size: 34px;
    }

    .feature-card p:not(.feature-label) {
        font-size: 16px;
    }

    .price-chart {
        padding: 20px;
    }

    .chart-header {
        flex-direction: column;
        gap: 4px;
    }

    .mini-notification {
        margin-top: 30px;
    }

    .privacy-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-actions .button {
        width: 100%;
    }

    .privacy-symbol {
        width: min(260px, 80%);
        border-radius: 34px;
    }

    .final-cta-icon {
        width: 80px;
        height: 80px;
    }

    .footer-navigation {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 70px 0 58px;
    }

    .page-hero h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .page-content {
        padding: 64px 0 90px;
    }

    .support-card-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-card .button {
        width: 100%;
    }
}


/* =====================================================
   27. Dispositivi molto piccoli
   ===================================================== */

@media (max-width: 380px) {
    .brand-name {
        max-width: 145px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .price-notification {
        padding: 13px;
    }

    .notification-icon {
        width: 40px;
        height: 40px;
    }

    .step-card,
    .feature-card {
        padding: 24px;
    }
}


/* =====================================================
   28. Utenti che preferiscono meno animazioni
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =====================================================
   29. Stampa
   Utile soprattutto per la Privacy Policy
   ===================================================== */

@media print {
    .site-header,
    .site-footer,
    .content-sidebar,
    .button,
    .skip-link {
        display: none !important;
    }

    body {
        color: #000000;
        background: #ffffff;
    }

    .page-hero,
    .page-content,
    .section {
        padding: 24px 0;
        background: #ffffff;
    }

    .container {
        width: 100%;
    }

    .content-layout {
        display: block;
    }

    p,
    li {
        color: #222222 !important;
    }

    a {
        color: #000000;
        text-decoration: underline;
    }
}