/* Stili Generali */
body {
    font-family: "Georgia", serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Sezioni e Titoli */
section {
    padding: 40px 5%;
    text-align: center;
}

h1 {
    color: #000;
    font-size: 2em;
    margin-bottom: 10px;
}

h2 {
    color: #ff9900;
    margin-bottom: 30px;
    font-size: 1.8em;
}

/* Sezione Hero */
.hero {
    background-color: #fff;
    background-image: url('../image/logo-ja-group.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    opacity: 0.9;
    display: flex;
    color: white;
}

.hero h1 {
    color: white;
    font-size: 26px;
    background: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    backdrop-filter: blur(10px);
}

.p1 {
    padding: 5px;
}

/* Sezione Proprietario (Chi Siamo) */
.owner-section {
    background-color: #f4f4f4;
    padding: 60px 5%;
}

.owner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* FOTO DEL PROPRIETARIO — tutta visibile e centrata nel rettangolo */
.owner-photo {
    width: 300px;
    height: 200px;
    object-fit: contain; /* Mostra tutta la foto */
    object-position: center; /* Centra l’immagine nel riquadro */
    border-radius: 10px;
    border: 4px solid #ff9900;
    background-color: #fff; /* Sfondo bianco dietro la foto se ha trasparenze o bordi */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.owner-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.owner-text h3 {
    color: #000;
    text-align: center;
}

.owner-text p {
    text-align: justify;
}

/* Vetrina Attività */
.vetrina {
    background-color: #fff;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h4 {
    color: #000;
    margin: 15px 0 5px 0;
    font-weight: bold;
}

main1 {
    font-weight: bold;
}

.card p {
    color: #666;
    padding: 0 15px;
    font-size: 0.9em;
}

/* Pulsante */
.btn {
    display: inline-block;
    background-color: #ff9900;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e68a00;
}

/* Sezione Contatti */
.contatti {
    background-color: #f4f4f4;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
}

/* Media Query per Desktop */
@media (min-width: 768px) {
    .card {
        width: calc(50% - 20px);
    }

    .card-container {
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .owner-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .owner-photo {
        width: 350px;
        height: 230px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .owner-text {
        flex: 1;
        text-align: left;
    }

    .owner-text h3 {
        text-align: left;
    }
}
/* --- CARD SPECIALE: MONTE CIMONE --- */
.card.special {
    position: relative;
    overflow: hidden;
}


/* Barra del tempo in basso */