/* ==============================
   RESET & BODY
   ============================== */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(to bottom, #2a3d66 0%, #e9f5fb 100%);
    color: #153959;
}

/* ==============================
   HEADER
   ============================== */
header {
    display: flex;
    align-items: center;
    background: #1c2841cc;
    padding: 10px 40px;
    box-shadow: 0 2px 10px #0002;
    position: relative;
    flex-wrap: wrap;
}
header img {
    height: 90px;
    margin-right: 30px;
}
nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
nav a {
    color: #c9deff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 18px;
    letter-spacing: 1px;
    font-size: 1.1rem;
    transition: color 0.3s;
}
nav a:hover {
    color: #ffe27a;
}

/* ==============================
   LANGUAGE SELECTOR (HEADER)
   ============================== */
.lang-selector {
    position: absolute;
    top: 10px;
    right: 30px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
}
.lang-selector span {
    color: #204170;
    margin: 0 6px;
    font-size: 1em;
    font-weight: 600;
}
.lang-selector a img.flag-icon {
    width: 16px;
    height: auto;
    margin: 0 4px;
}

/* ==============================
   MAIN & GENERIC STYLES
   ============================== */
main {
    max-width: 900px;
    margin: 40px auto;
    background: #fff7fbde;
    border-radius: 24px;
    padding: 50px 40px 60px 40px;
    box-shadow: 0 4px 32px #0002;
    text-align: center;
}
h1 {
    font-size: 2.2rem;
    color: #1c2841;
    margin-bottom: 16px;
}
.waves {
    margin: 30px 0;
    height: 28px;
    background: url('https://svgshare.com/i/wKW.svg') repeat-x bottom;
    background-size: auto 28px;
}
.button {
    background: #1c2841;
    color: #ffe27a;
    padding: 14px 40px;
    border: none;
    border-radius: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 36px;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}
.button:hover {
    background: #254066;
    color: #fff;
}

/* ==============================
   VELA TITLE OVERRIDE
   ============================== */
.vela-title {
    margin-top: 10px;
    margin-bottom: 24px;   /* spazio aggiunto */
    font-size: 1.6rem;
    font-weight: bold;
    color: #1c2841;
    letter-spacing: 2px;
}

/* ==============================
   JUSTIFY MAIN TEXT BLOCKS
   ============================== */
.vela-text,
.cucina-text,
.about-text {
    text-align: justify;
}

/* ==============================
   HOME MEDIA SECTION
   ============================== */
.media-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.media-section img,
.media-section video {
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 18px #0003;
    background: #f7fafc;
}
@media (max-width: 1200px) {
    .media-section {
        flex-direction: column;
        align-items: center;
    }
}

/* ==============================
   DROPDOWN NAV (Cucina)
   ============================== */
nav .dropdown {
    position: relative;
    display: inline-block;
}
nav .dropdown > a {
    cursor: pointer;
}
nav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 20;
}
nav .dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #153959;
    text-decoration: none;
    font-size: 0.95rem;
}
nav .dropdown-content a:hover {
    background: #f0f4f8;
}
nav .dropdown:hover .dropdown-content {
    display: block;
}

/* ==============================
   GALLERY GRID
   ============================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 14px;
    margin: 24px auto;
    max-width: 900px;
}
.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 12px #0002;
    object-fit: cover;
    aspect-ratio: 4/3;
}
@media(max-width:600px){
    .gallery-grid { grid-template-columns:1fr; }
}

/* ==============================
   TEAM PHOTOS
   ============================== */
.team-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.team-photos img {
    max-width: 220px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 12px #0002;
    background: #fff;
}
@media(max-width:700px){
    .team-photos { flex-direction:column; align-items:center; }
}

/* ==============================
   EXPERIENCE VIDEOS
   ============================== */
.experience-videos {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.experience-videos video {
    max-width: 270px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 12px #0002;
}
@media(max-width:700px){
    .experience-videos { flex-direction:column; gap:12px; }
    .experience-videos video { max-width:100%; }
}

/* ==============================
   PRICE TABLE (Experience)
   ============================== */
.price-table {
    margin: 20px auto 34px auto;
    border-collapse: collapse;
    width: auto;
}
.price-table th,
.price-table td {
    border: 1px solid #b5c6e0;
    padding: 8px 12px;
    font-size: 1rem;
}
.price-table th {
    background: #f0f4f8;
    font-weight: 600;
}

/* ==============================
   CUCINA PHOTOS
   ============================== */
.cucina-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}
.cucina-photos img {
    max-width: 330px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 12px #0002;
    object-fit: cover;
}
@media(max-width:700px){
    .cucina-photos { flex-direction:column; gap:10px; }
    .cucina-photos img { max-width:100%; }
}

/* ==============================
   CONTACTS
   ============================== */
.contact-section {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.map-container {
    margin: 18px 0 14px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0002;
}
form {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
    margin-top: 16px;
}
form input, form textarea {
    width: 100%;
    max-width: 320px;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #b5c6e0;
    font-size: 1rem;
}
form button {
    background: #1c2841;
    color: #ffe27a;
    padding: 9px 18px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
form button:hover {
    background: #254066;
    color: #fff;
}
.contact-mail {
    margin-top: 14px;
    font-size: 1rem;
}

/* ==============================
   SPOKEN LANGUAGES (PHONE)
   ============================== */
.spoken-langs img.flag-icon {
    width: 24px;
    height: auto;
    margin: 0 4px;
}

/* ==============================
   RESPONSIVE HEADER & LANGUAGE SELECTOR
   ============================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    nav {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    .lang-selector {
        position: static !important;
        order: 2;
        margin: 12px 0 24px;
        box-shadow: none;
        background: transparent;
    }
}

@media(max-width:600px){
    .map-container iframe { height:130px; }@media (max-width: 700px) {
  /* Mantieni i video affiancati orizzontalmente */
  .experience-videos {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;   /* consente lo scroll orizzontale se necessario */
    padding-bottom: 8px; /* un piccolo padding per lo scroll */
  }
  .experience-videos video {
    width: 45%;         /* due video a testa sullo schermo */
    max-width: none;    /* disabilita il previous max-width */
    flex: 0 0 auto;     /* impedisce flessioni indesiderate */
  }
}

}
