/*
Theme Name: CapturingDetails
Theme URI: https://capturingdetails.photo
Author: Davide
Author URI: https://capturingdetails.photo
Description: Tema base CapturingDetails (layout originale bande, font Autumn in September, portrait/landscape)
Version: 1.0
Text Domain: capturingdetails
*/

/* =========================================================
   CAPTURINGDETAILS - style.css
   VERSIONE: 28 (centraggio + Gallerie testo off-white)
   DATA: 2026-02-10

   MODIFICHE (include tutte le precedenti):
   - Fix sfondo: rimosso giallo sotto header (forzato background #04052e)
   - Font più grandi + weight per leggibilità (menu + testi)
   - Spazi menu ridotti (desktop + mobile)
   - Mobile orizzontale: un peletto più grande
   - Desktop: aumentato ancora (1 step) il menu
   - ✅ Fix centraggio Simply Gallery
   - ✅ Centraggio “di base” testi + blocchi principali
   - ✅ SOLO pagina Gallerie: testo in bianco sporco
========================================================= */

/* ====== FONT ORIGINALE ====== */
@font-face {
    font-display: swap;
    font-family: 'Autumn in September';
    font-style: normal;
    font-weight: normal;
    src: url('font/AutumninSeptember.eot');
    src: url('font/AutumninSeptember.eot?#iefix') format('embedded-opentype'),
         url('font/AutumninSeptember.woff2') format('woff2'),
         url('font/AutumninSeptember.woff') format('woff'),
         url('font/AutumninSeptember.svg#AutumninSeptember') format('svg');
}

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

/* ====== FIX SFONDO (NO GIALLO SOTTO HEADER) ====== */
body {
    background-color: #04052e !important;
}

img {
    pointer-events: none;
}

/* ====== HEADER + MENU ====== */
.menu {
    width: 100%;
}

/* DESKTOP / LANDSCAPE */
@media screen and (orientation:landscape) {
    header {
        background-color: #0ff4c6;
        position: sticky;
        top: 0;
        z-index: 10;
        text-align: center;
        padding: 8px 0;
    }

    .menu ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        list-style: none;
    }
}

/* MOBILE PORTRAIT */
@media screen and (orientation:portrait) {
    header {
        background-color: #0ff4c6;
        text-align: center;
        padding: 10px 0;
        z-index: 10;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        list-style: none;
        padding: 8px 0;
    }
}

/* LINK MENU (colore originale) */
.menu a {
    display: block;
    text-decoration: none;
}

.menu ul li a {
    color: #af3e4d;
    font-family: 'Autumn in September';
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.06;
    padding: 8px 12px;
    font-size: clamp(20px, 2.6vh, 32px);
}

.menu ul li a:hover {
    background-color: #f4e409;
    border-radius: 9px;
}

/* ✅ DESKTOP */
@media screen and (orientation:landscape) {
    .menu ul li a {
        font-size: clamp(38px, 3.8vh, 56px);
        padding: 8px 12px;
        line-height: 1.03;
    }
}

/* ✅ MOBILE VERTICALE */
@media screen and (orientation:portrait) {
    .menu ul li a {
        font-size: clamp(30px, 4.5vh, 52px);
        padding: 8px 12px;
        line-height: 1.05;
    }
}

/* ✅ MOBILE ORIZZONTALE */
@media screen and (orientation:landscape) and (max-width: 980px) {
    .menu ul {
        gap: 10px;
    }

    .menu ul li a {
        font-size: clamp(26px, 3.8vh, 38px);
        padding: 8px 10px;
        line-height: 1.05;
    }
}

/* ====== SUBMENU COMPLETAMENTE RIMOSSO ====== */
.submenu {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ====== MAIN CONTENT ====== */
@media screen and (orientation:portrait) {
    .main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 3%;
    }

    .onethird {
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    .onethird img {
        width: 27%;
        margin: auto;
        object-fit: contain;
    }

    .twothirds {
        width: 100%;
        padding: 3%;
        position: relative;
    }
}

@media screen and (orientation:landscape) {
    .main-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        height: 30vh;
        padding: 3%;
    }

    .onethird {
        width: 27%;
        display: flex;
        flex-direction: column;
    }

    .onethird img {
        height: 12vh;
        width: 27%;
        margin: auto;
        object-fit: contain;
    }

    .twothirds {
        width: 63%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }
}

.onethird p {
    color: #ead7d1;
    font-family: 'Autumn in September';
    font-size: 5vh;
    font-weight: bold;
    text-align: center;
}

.twothirds video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

/* ====== RIQUADRI ====== */
@media screen and (orientation:portrait) {
    .riquadri {
        display: flex;
        flex-direction: column;
        padding: 0 3% 2%;
    }

    .riquadro {
        background-color: #ead7d1;
        border-radius: 9px;
        margin: 3% 0;
        overflow: hidden;
    }
}

@media screen and (orientation:landscape) {
    .riquadri {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        height: 64vh;
        padding: 0 3% 2%;
    }

    .riquadro {
        background-color: #ead7d1;
        border-radius: 9px;
        width: 27%;
        overflow: hidden;
    }
}

/* ====== FIGCAPTION (colore originale) ====== */
figcaption {
    color: #af3e4d;
    font-family: 'Autumn in September';
    font-weight: 700;
    font-size: 3.6vh;
    padding: 3%;
    text-align: center;
}

figcaption a {
    color: #af3e4d;
    text-decoration: none;
}

/* ====== IMMAGINI ====== */
.bordered-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    margin: auto;
    object-fit: contain;
    padding: 3%;
}

/* ====== CONTENUTI TESTO ====== */
@media screen and (orientation:portrait) {
    .contenuto {
        display: flex;
        flex-direction: column;
        padding: 0 3% 2%;
    }

    .normal-text {
        color: #ead7d1;
        font-family: 'Autumn in September';
        font-weight: 600;
        font-size: 3.6vh;
        text-align: justify;
    }

    .contatti {
        color: #ead7d1;
        font-family: 'Autumn in September';
        font-weight: 700;
        font-size: 8.5vw;
    }
}

@media screen and (orientation:landscape) {
    .contenuto {
        display: flex;
        flex-direction: row;
        padding: 0 3% 2%;
        max-height: 94vh;
    }

    .normal-text,
    .contatti {
        color: #ead7d1;
        font-family: 'Autumn in September';
        font-weight: 600;
        font-size: 3.6vh;
        padding: 3%;
        text-align: justify;
    }
}

.contatti a {
    color: #ead7d1;
    text-decoration: none;
}

/* ====== FIX WORDPRESS ====== */
.wp-block-image img,
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* ====== EXTRA FIX SFONDO ====== */
body,
main,
#content,
.site,
.site-content,
.entry-content,
.wp-site-blocks {
    background: #04052e !important;
}

/* =========================================================
   CENTRAGGIO “DI BASE”
========================================================= */

/* Testo e blocchi inline centrati di default nei contenitori principali */
main,
.site,
.site-content,
.entry-content {
    text-align: center;
}

/* Immagini e media centrati orizzontalmente */
.bordered-image,
.onethird img,
.wp-block-image,
.wp-block-image img {
    margin-left: auto;
    margin-right: auto;
}

/* Testi principali centrati */
.normal-text,
.contatti {
    text-align: center;
}

/* Riquadri e contenuti centrati in orizzontale su desktop */
@media screen and (orientation:landscape) {
    .riquadri {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 3%;
        height: 64vh;
        padding: 0 3% 2%;
    }

    .riquadro {
        background-color: #ead7d1;
        border-radius: 9px;
        width: 27%;
        overflow: hidden;
        margin: 0 1.5%;
    }

    .contenuto {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding: 0 3% 2%;
        max-height: 94vh;
        text-align: center;
    }
}

/* =========================================================
   SOLO PAGINA GALLERIE: TESTO BIANCO SPORCO
   (sostituisci page-id-XX con l’ID reale della pagina Gallerie)
========================================================= */

/* Esempio con page-id-15: cambia in base al tuo ID */
body.page-id-15 .contenuto,
body.page-id-15 .normal-text,
body.page-id-15 .contatti,
body.page-id-15 figcaption,
body.page-id-15 figcaption a {
    color: #F8F0E3;
}

