/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

/* Header & Navbar */
header {
    background: url('img/home.webp') center/cover no-repeat;
    min-height: 100vh;
    position: relative;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #e0f8df;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav .logo img {
    height: 50px;
}

/* Nascondi hamburger su desktop */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #27ae60;
    cursor: pointer;
}

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

.nav-links a {
    text-decoration: none;
    color: #27ae60;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #1e8449;
    text-decoration: underline;
}

/* Mobile styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #e0f8df;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 1rem 0;
    }

    .nav-links.show {
        display: flex;
    }
}


/* Hero */
.hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
}
.hero h1 {
    font-size: 2.5rem;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.hero .btn {
    background: #27ae60;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.hero .btn:hover {
    background: #1e8449;
}

/* Albo */
#albo {
    text-align: left;
    margin-top: 1rem;
    margin-left: 0.5rem;
}
#albo .albo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}
#albo img {
    height: 100px;
    width: auto;
}
#albo span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff; /* o #333 se sfondo chiaro */
}


/* General Sections */
section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}
h2 {
    color: #27ae60;
    margin-bottom: 1.5rem;
}

/* Grid Utility */
.grid {
    display: grid;
    gap: 2rem;
}

/* About Section */
#about {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.content img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}
.content .text {
    max-width: 100%;
}

/* Services */
#services .grid {
    grid-template-columns: 1fr;
}
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
}
.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
.card-content p,
.card-content ul {
    font-size: 0.95rem;
}

/* === FAQ === */
#process .grid {
    grid-template-columns: 1fr;
}
#process p{
    margin-bottom: 0.5rem;
}
details summary {
    cursor: pointer;
    list-style: none;
}
  
details summary h3 {
    display: inline;
    color: #008000;
}
  
details[open] summary h3::after {
    content: " ▲";
}
  
details summary h3::after {
    content: " ▼";
}

/* Pricing */
#pricing .grid {
    grid-template-columns: 1fr;
}
.price-list {
    background: #e0f8df;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    align-content: center;
}

/* Attestati */
#formazione li{
    margin-left: 1.5rem;
}
#attestati {
    margin: 0 auto;
}
#pdf h3{
    color: #333;
}
#pdf a{
    text-decoration: none;
    color: #333;
}
#pdf a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Form Prenota */
#prenota {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#prenota h2 {
    text-align: center;
}
#prenota form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#prenota label {
    font-weight: 600;
}
#prenota input,textarea{
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    resize: none;
}
#prenota input:focus {
    outline: none;
    border-color: #27ae60;
}
#prenota textarea:focus{
    outline: none;
    border-color: #27ae60;
}
#prenota .form-note {
    font-size: 0.9rem;
}
#prenota button {
    background: #27ae60;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
#prenota button:hover {
    background: #1e8449;
}

/* === Orari di apertura === */
.orari-apertura {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 1rem;
  }
  
.orari-apertura th,
.orari-apertura td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}
  
.orari-apertura thead {
    background-color: #f5f5f5;
    font-weight: 600;
}
  
#orari h2 {
    text-align: center;
    margin-bottom: 1rem;
}  

/* Footer */
footer {
    background: #27ae60;
    color: #fff;
    padding: 2rem;
    margin-top: 5rem;
}
footer .footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}
footer h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #fff;
    padding-bottom: 0.25rem;
    color: #fff;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer .social {
    display: flex;
    gap: 1rem;
}
footer a {
    color: #fff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}
/* === social === */
.social {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.social a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}
  
.social a:hover {
    color: #ccc;
}
  

/* ======= Media Queries ======= */

/* Small devices (≥576px) */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 3rem;
    }
    .content {
        flex-direction: row;
    }
    .content .text {
        max-width: 600px;
    }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
    #services .grid,
    #pricing .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    footer .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
    #services .grid,
    #pricing .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (≥1200px) */
@media (min-width: 1200px) {
    #services .grid,
    #pricing .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
