/* --- Variabili e Palette Colori --- */
:root {
    --primary: #333333;
    --accent: #0066cc;
    --bg: #f4f4f4;
    --card: #ffffff;
    --text: #444444;
    --text-light: #666666;
    --border: #eeeeee;
    --warning-bg: #fff9e6;
    --warning-border: #ffeeba;
    --warning-text: #856404;
}

/* --- Reset e Impostazioni Base --- */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    margin: 0;
    padding: 0;
}

/* --- Contenitore Principale --- */
.container {
    max-width: 850px;
    margin: 40px auto;
    background: var(--card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* --- Header e Media --- */
.banner-container {
    margin: -40px -40px 30px -40px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.app-banner {
    width: 100%;
    height: auto;
    display: block;
}

.main-header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    margin: 0;
    color: var(--primary);
    font-size: 2.8rem;
}

.main-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* --- Navigazione e Sezioni --- */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Layout Contenuti (Home) --- */
.intro {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-top: 40px;
}

/* Griglia Funzionalità */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 1.15rem;
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
}

.feature-item a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.feature-item a:hover {
    text-decoration: none;
}

/* --- Sezione marketing (Perché sceglierla) --- */
.why-section {
    margin-top: 40px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
}

.why-section p {
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.65;
}

.availability-section {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
}

.availability-section p {
    max-width: 40rem;
    margin: 0.5rem auto 0;
    line-height: 1.65;
    font-size: 1.05rem;
}

/* --- Documenti legali (privacy, termini) --- */
.legal-doc {
    text-align: left;
}

.legal-doc h2 {
    margin-top: 0;
}

.legal-doc h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-doc p,
.legal-doc ul {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.65;
}

.legal-doc ul {
    padding-left: 1.35rem;
    margin: 0.5rem 0 1rem;
}

.legal-doc li {
    margin-bottom: 0.55rem;
}

.legal-doc li:last-child {
    margin-bottom: 0;
}

/* Disclaimer e Note */
.disclaimer-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    padding: 20px;
    border-radius: 8px;
    margin: 40px 0;
    font-size: 0.95rem;
    color: var(--warning-text);
}

/* --- Galleria Screenshot --- */
.screenshot-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 0;
    -webkit-overflow-scrolling: touch;
}

.screenshot-placeholder {
    min-width: 200px;
    height: 400px;
    background: #f0f0f0;
    border: 1px dashed #cccccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
}

/* --- Sezione Contatti --- */
.contact-section {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    border-left: 6px solid var(--accent);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.contact-list li {
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.footer-logo-container {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 60px;
    height: auto;
    border-radius: 12px;
    opacity: 0.9;
}

footer nav a {
    cursor: pointer;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    margin: 0 12px;
}

footer nav a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 0.85rem;
    color: #999999;
    margin-top: 20px;
}

/* --- Link e Utility --- */
a {
    color: var(--accent);
    text-decoration: none;
}

.update-date {
    font-style: italic;
    color: #888;
    margin-bottom: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 650px) {
    .container {
        margin: 15px;
        padding: 25px;
    }

    .banner-container {
        margin: -25px -25px 25px -25px;
    }

    h1 {
        font-size: 2.1rem;
    }

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