/* ============================================
   ItaBnB — Temporary Preview Page Stylesheet
   Brand: Italy green (#009246), dark blue (#1a1a2e), white
   ============================================ */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #009246;
    color: #fff;
    border-color: #009246;
}
.btn-primary:hover {
    background: #007a3a;
    border-color: #007a3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 146, 70, 0.35);
}

/* ----- Header ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    flex-shrink: 0;
}
.logo img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #009246;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ----- Hero ----- */
.hero {
    background: linear-gradient(160deg, #1a1a2e 0%, #162447 40%, #0f3460 100%);
    color: #fff;
    padding: 8rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(0, 146, 70, 0.12) 0%,
        transparent 70%
    );
    border-radius: 50%;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 146, 70, 0.2);
    color: #4ade80;
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero > .container > .hero-content > p:first-of-type {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    margin-bottom: 1.25rem;
}

.hero-microcopy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* ----- Sections ----- */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.section-header p {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 146, 70, 0.08);
    color: #009246;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

/* ----- Features ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition:
        box-shadow 0.3s,
        transform 0.3s;
}
.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}
.feature-card .feature-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    display: block;
}
.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* ----- Obiettivo ----- */
.obiettivo-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.obiettivo-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.obiettivo-content p:last-child {
    margin-bottom: 0;
}

/* ----- Not Section ----- */
.not-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.not-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s;
}
.not-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.not-card .not-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}
.not-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.not-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
}
.not-summary {
    text-align: center;
    font-size: 1rem;
    color: #555;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
    font-style: italic;
}

/* ----- Contact ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
.contact-info p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.975rem;
    color: #333;
}
.contact-method a {
    color: #009246;
    font-weight: 600;
}
.contact-method a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
    color: #1a1a2e;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #009246;
    box-shadow: 0 0 0 3px rgba(0, 146, 70, 0.08);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ----- Footer ----- */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 3.5rem 0 2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 1rem;
}
.footer-brand p {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 340px;
}
.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
}
.footer-links ul li {
    margin-bottom: 0.55rem;
}
.footer-links ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}
.footer-links ul li a:hover {
    color: #fff;
}
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

/* ----- Legal Pages ----- */
.legal-page {
    padding: 6rem 0 4rem;
    max-width: 750px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a2e;
}
.legal-page h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
    color: #009246;
}
.legal-page p,
.legal-page li {
    color: #444;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}
.legal-page ul {
    padding-left: 1.5rem;
    list-style: disc;
}
.legal-page .disclaimer {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2rem 0;
    font-size: 0.925rem;
    color: #856404;
}
.legal-page .back-home {
    display: inline-block;
    margin-top: 2rem;
    color: #009246;
    font-weight: 600;
}
.legal-page .back-home:hover {
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 4rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero > .container > .hero-content > p:first-of-type {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 1.65rem;
    }
    .section {
        padding: 3.5rem 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .not-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    .hero-sub {
        font-size: 0.925rem;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 1.5rem 1.25rem;
    }
    .section-header h2 {
        font-size: 1.45rem;
    }
}
