
/* ============================================================
   TU-MI.com — PAGINA VIDEO RESPONSIVE
   Layout desktop, tablet e smartphone
   ============================================================ */

/* Dimensioni prevedibili per tutti gli elementi */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Documento */
html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Contenitore centrale della pagina */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sezioni principali */
.category-section,
.related-content {
    width: 100%;
    min-width: 0;
    margin: 0 auto 30px;
}

/* ============================================================
   STILI DEL BLOCCO RACCOMANDATO
   ============================================================ */

.recommended-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background-color: #FFDAB9;
    overflow-wrap: anywhere;
}

.rec-title {
    margin: 0 0 15px;
    color: #000;
    font-family: "Dancing Script", cursive;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

/* Link principali */
.top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
}

.top-links a {
    color: #000;
    font-family: "Dancing Script", cursive;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    text-decoration: none;
}

.top-links a:hover {
    color: #8B4513;
}

/* Elenco delle città */
.city-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    margin-top: 25px;
    line-height: 1.8;
}

.city-list a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    color: #000;
    font-family: "Dancing Script", cursive;
    font-size: 15px;
    text-decoration: none;
}

.city-list a:hover {
    background-color: #FFBC8B;
}

/* ============================================================
   FEED INSTAGRAM
   ============================================================ */

.instagram-feed-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px 0;
    text-align: center;
}

.insta-title {
    margin: 0 0 25px;
    color: #333;
    font-family: "Dancing Script", cursive;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
}

/* L'iframe occupa tutta la larghezza disponibile.
   L'altezza effettiva del feed può dipendere dal widget. */
.lightwidget-widget {
    display: block;
    width: 100%;
    min-height: 480px;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {
    .page-container {
        padding: 16px;
    }

    .lightwidget-widget {
        min-height: 620px;
    }
}

/* ============================================================
   SMARTPHONE
   ============================================================ */

@media (max-width: 600px) {
    .page-container {
        padding: 10px;
    }

    .category-section,
    .related-content {
        margin-bottom: 20px;
    }

    .recommended-container {
        padding: 14px;
    }

    .top-links {
        gap: 10px 16px;
    }

    .city-list {
        gap: 4px 6px;
    }

    .city-list a {
        font-size: 14px;
        margin: 0;
    }

    .instagram-feed-wrapper {
        margin: 30px auto;
        padding: 10px 0;
    }

    .insta-title {
        margin-bottom: 20px;
    }

    .lightwidget-widget {
        min-height: 850px;
        border-radius: 8px;
    }
}

/* ============================================================
   IMMAGINI E TABELLE GENERATE DAI COMPONENTI PHP
   ============================================================ */

/* Impedisce alle immagini di uscire dal contenitore.
   Non imposta il layout delle schede video. */
.page-container img {
    max-width: 100%;
    height: auto;
}

/* Consente lo scorrimento delle tabelle larghe senza
   allargare l'intera pagina. */
.page-container table {
    max-width: 100%;
}
