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

:root {
    --color-primary: #063a61;
    --color-secondary: #f1d72c;
    --color-accent: #4175FC;
    --color-white: #ffffff;
    --color-gray-light: #f5f7fa;
    --color-gray: #6b7280;
    --color-text: #1f2937;
    --color-whatsapp: #25D366;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #dcc228;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 215, 44, 0.4);
}

.btn-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-logos .logo {
    width: auto;
}

.logo-sito-gratis-hero {
    height: 150px;
}

.logo-rocket-hero {
    height: 100px;
    margin-bottom: 1.7em;
    margin-left: 1.1em;
}

.logo-divider {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-secondary);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.highlight {
    color: var(--color-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Service Sections */
.service-section {
    padding: 80px 0;
}

.service-section-alt {
    background-color: var(--color-gray-light);
}

.service-header {
    text-align: center;
    margin-bottom: 16px;
}

.service-logo {
    height: 180px;
    width: auto;
    margin-bottom: 16px;
}

.service-logo-rocket {
    height: 120px;
}

.service-header h2 {
    font-size: 2rem;
    color: var(--color-primary);
}

.service-tagline {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 48px;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.feature {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 50%;
}

.feature h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.feature p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

/* Service Mockup */
.service-mockup {
    text-align: center;
    margin: 48px 0;
}

.service-mockup img {
    max-width: 100%;
    height: auto;
    max-height: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Offer Box */
.offer-box {
    background-color: var(--color-white);
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.service-section-alt .offer-box {
    background-color: var(--color-gray-light);
}

.offer-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.offer-box p {
    margin: 8px 0;
}

.offer-box strong {
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* Gift Section */
.gift-section {
    padding: 80px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.gift-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.gift-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.gift-card {
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.nfc-icon {
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.gift-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.gift-card p {
    opacity: 0.9;
}

.gift-conditions p {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.gift-conditions ul {
    list-style: none;
    padding: 0;
}

.gift-conditions li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.gift-conditions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-gray-light);
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.contact-subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 48px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background-color: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
}

.contact-alternative {
    text-align: center;
    padding: 48px 32px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-alternative p {
    margin-bottom: 24px;
    color: var(--color-gray);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    align-self: center;
}

.logo-sito-gratis-footer {
    max-height: 200px;
}

.logo-rocket-footer {
    max-height: 120px;
    margin-top: 1.5em;
}

.footer-brand-text {
    margin-top: auto;
}

.footer-brand-text p {
    margin: 4px 0;
}

.footer-brand a {
    color: var(--color-white);
    opacity: 0.9;
}

.footer-brand a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-error {
    background-color: #ef4444;
    color: white;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Offer Button */
.btn-offer {
    margin-top: 16px;
}

/* Gift Images */
.gift-images {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.gift-images img {
    max-width: 400px;
    width: calc(50% - 12px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Footer Legal */
.footer-legal {
    font-size: 0.75rem;
    margin-top: 12px;
    opacity: 0.7;
}

.footer-legal a {
    color: var(--color-white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h3 {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
    color: var(--color-primary);
}

.modal-body {
    padding: 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-gray);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
}

/* Cookie Floating Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-settings-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: scale(1.1);
}

.cookie-settings-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-sito-gratis-hero {
        height: 100px;
    }

    .logo-rocket-hero {
        height: 55px;
    }

    .gift-images img {
        width: 100%;
        max-width: 100%;
    }

    .service-logo {
        height: 100px;
    }

    .service-logo-rocket {
        height: 70px;
    }

    .logo-sito-gratis-footer {
        max-height: 120px;
    }

    .logo-rocket-footer {
        max-height: 70px;
    }

    .logo-rocket-footer + .footer-brand-text {
        margin-top: 15px;
    }

    .logo-rocket-hero {
        margin-bottom: 1em;
        margin-left: 0.5em;
    }

    .service-section,
    .gift-section,
    .contact-section {
        padding: 60px 0;
    }

    .service-header h2,
    .gift-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .gift-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-logos {
        flex-direction: column;
        gap: 12px;
    }

    .logo-divider {
        display: none;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}
