/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4CAF50;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    padding: .5rem;
    border-radius: 4px;
    transition: background .3s;
}

.nav-links a:hover {
    background: rgba(76, 175, 80, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 4px;
    transition: all .3s;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
}

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

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #4CAF50;
    padding: .75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: transform .2s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Sections */
.section {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 1rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #4CAF50;
}

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

.service-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform .3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin: 1rem 0 .5rem;
    font-weight: 600;
}

/* Pricing */
.pricing-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.toggle-btn {
    cursor: pointer;
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 30px;
    margin: 0 .5rem;
    background: #f0f0f0;
    transition: background .3s;
}

.toggle-btn.active {
    background: #4CAF50;
    color: #fff;
}

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

.plan {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.plan.popular::after {
    content: "Più popolare";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #4CAF50;
    color: #fff;
    padding: .25rem .75rem;
    border-radius: 4px;
    font-size: .75rem;
}

.plan h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.plan .price {
    font-size: 2rem;
    margin: 1rem 0;
}

.plan ul {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
}

.plan ul li {
    margin: .5rem 0;
}

.plan .btn {
    margin-top: 1rem;
}

/* Contatti */
.contact-form {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form .field {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
}

.contact-form button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}

.contact-form button:hover {
    background: #43A047;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #f9f9f9;
    font-size: .9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height .3s ease;
    }

    .nav-links.show {
        max-height: 300px;
    }

    .hamburger {
        display: flex;
    }
}

/* Stili personalizzati oltre a Tailwind */
.gradient-bg {
  background: linear-gradient(135deg, #0ea5e9 0%, #a21caf 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #0ea5e9 0%, #a21caf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Effetto blur sulle card */
.glass-effect {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Feature accordion (funzionalita avanzate) */
.feature-block summary { cursor: pointer; }
@media (max-width: 767px) {
    .feature-block summary { position: relative; }
    .feature-block:not([open]) summary { background: #ffffff; }
    .feature-block[open] summary { background: #f1f5f9; }
}
.feature-block summary::-webkit-details-marker { display: none; }
.feature-block summary:focus { outline: 2px solid rgba(59,130,246,.5); outline-offset: 2px; }
.feature-block ul li { list-style-position: outside; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
    width: auto;
    height: auto;
    padding: 8px 14px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 0 0 3px rgba(255,255,255,.6);
}