/* DRESSERA - Professional Uniform Spacing Stylesheet */

:root {
    --primary-blue: #1a4a7a;
    --accent-green: #4CAF50;
    --bg-white: #ffffff;
    --text-muted: #666;
    --input-border: #dddddd;
    --transition-speed: 0.3s;
    --store-badge-slot-h: 46px;
    /* Unità di base per lo spacing uniforme */
    --unit: 20px; 
}

html, body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--primary-blue);
    -webkit-font-smoothing: antialiased;
}

html.mode-coming-soon,
body.mode-coming-soon {
    height: 100%;
}

body.mode-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    padding: 40px var(--unit);
    max-width: 500px;
    width: 100%;
    animation: fadeIn 1.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. NOME APP */
.app-name {
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 7px;
    margin-bottom: 12px;
    color: var(--primary-blue);
    line-height: 1;
}

/* 2. LOGO - Spazi sopra e sotto identici */
.logo {
    width: 240px; 
    height: auto;
    margin-bottom: 12px;
    display: block;
    transition: transform var(--transition-speed);
}

/* 3. BADGE */
.badge {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--accent-green);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--unit); /* Uniforme */
}

/* 4. TITOLO */
h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin: 0 0 10px 0; /* Ridotto leggermente per stare vicino al paragrafo */
    letter-spacing: -0.8px;
    line-height: 1.2;
}

/* 5. PARAGRAFO */
p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 40px 0; /* Spazio maggiore prima del form per separare "info" da "azione" */
    font-weight: 300;
    max-width: 90%;
}

/* 6. FORM */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

input[type="email"] {
    border: none;
    border-bottom: 1px solid var(--input-border);
    padding: 12px 5px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color var(--transition-speed);
    text-align: center;
    width: 100%;
    max-width: 320px;
    background: transparent;
    color: var(--primary-blue);
}

input[type="email"]:focus {
    border-bottom: 1px solid var(--accent-green);
}

button {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 10px 20px;
    transition: opacity var(--transition-speed), transform 0.2s;
}

button:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

.msg {
    font-size: 0.9rem;
    margin-top: 20px;
}

.store-badges {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.store-badges a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.store-badge-link {
    cursor: pointer;
}

.store-badge-img {
    height: 100% !important;
    width: auto !important;
    max-height: 100%;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: opacity var(--transition-speed), transform 0.2s;
}

.store-badge-slot {
    height: var(--store-badge-slot-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-badges a:hover .store-badge-img {
    opacity: 0.86;
    transform: translateY(-1px);
}

.store-badge-disabled {
    cursor: pointer;
}

.store-badge-disabled .store-badge-img {
    opacity: 0.6;
    transform: none;
}

.store-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(8px);
    background: rgba(28, 96, 161, 0.92);
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 9px 14px;
    border-radius: 999px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 50;
    pointer-events: none;
}

.store-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.feedback-toast {
    bottom: 70px;
}

.feedback-toast.is-success {
    background: rgba(50, 138, 79, 0.94);
}

.feedback-toast.is-error {
    background: rgba(184, 55, 63, 0.94);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .logo { width: 200px; }
    .store-badges {
        gap: 8px;
    }
    :root {
        --store-badge-slot-h: 42px;
    }
}

html.mode-live,
body.mode-live {
    height: auto;
    min-height: 100%;
}

body.mode-live {
    display: block;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 55%);
    color: #17344f;
}

.live-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 36px 20px 56px;
    animation: fadeIn 0.85s ease-out;
}

.live-hero {
    text-align: center;
    margin-bottom: 30px;
}

.live-logo {
    width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.live-hero h1 {
    margin-top: 0;
}

.live-subscribe {
    margin-top: 22px;
    text-align: center;
}

.live-hero p {
    margin: 0 auto 28px;
    max-width: 680px;
}

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

.feature-card {
    border: 1px solid #dce8f4;
    border-radius: 14px;
    padding: 16px;
    background-color: #fff;
}

.feature-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: #17344f;
}

.feature-card p {
    margin: 0;
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .live-features {
        grid-template-columns: 1fr;
    }
}
