/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://triathloncittadicagliari.com/
Description: Tema figlio di Twenty Twenty-Five
Author: MC
Author URI: https://triathloncittadicagliari.com/
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* Qui puoi aggiungere i tuoi stili personalizzati */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

body {
    background: #000;
    color: #fff;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

a, a:visited {
    color: #e10600;
    text-decoration: underline;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 500;
}

a:hover, a:focus {
    color: #fff;
    background: #e10600;
    text-decoration: none;
}

header, footer, nav, .wp-block-group {
    background: #000;
}

h1, h2, h3, h4, h5, h6 {
    color: #e10600;
    font-family: 'Teko', 'Impact', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
    line-height: 0.9;
}

button, input[type="submit"], .wp-block-button__link {
    background: #e10600;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Oswald', 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
    background: #fff;
    color: #e10600;
}

::selection {
    background: #e10600;
    color: #fff;
}

/* Featured image full screen con effetto parallasse */
.wp-block-post-featured-image,
.wp-block-post-featured-image img {
    display: block;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    z-index: 1;
}

.wp-block-post-featured-image {
    height: 20vh;
    min-height: 120px;
    max-height: 40vh;
    overflow: hidden;
    background: #000;
}

.wp-block-post-featured-image img {
    height: 100%;
    width: 100vw;
    object-fit: cover;
    object-position: center;
    /* Parallasse base */
    will-change: transform;
    transition: transform 0.2s;
    background-attachment: fixed;
}

/* Responsive: aumenta l'altezza su mobile */
@media (max-width: 600px) {
    .wp-block-post-featured-image {
        height: 30vh;
    }
}

/* Menu in corsivo */
nav, nav * {
    font-family: 'Oswald', 'Impact', sans-serif;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
body,
header,
footer,
 
nav,
.wp-block-group,
.wp-site-blocks,
.wp-block,
main,
article,
section,
aside {
    background: #000 !important;
}
.wp-block-group,
main {
    padding-top: 0 !important;
}

/* Sovrascrittura per il footer */
footer, 
.wp-site-blocks footer,
footer.wp-block-template-part {
    background: #fff !important;
    color: #000 !important;
}
body,
header,
footer,
 
nav,
.wp-block-group,
.wp-site-blocks,
.wp-block,
main,
article,
section,
aside {
    background: #000 !important;
}
.wp-block-group,
main {
    padding-top: 0 !important;
}

/* Rimuovi il blocco duplicato che appare qui sotto */

/* Sovrascrittura per il footer - assicurati che sia l'ultima regola */
footer, 
.wp-site-blocks footer,
footer.wp-block-template-part,
.wp-block-template-part.footer {
    background: #fff !important;
    color: #000 !important;
}



.sticky-menu {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: white; /* Importante per evitare trasparenze */
}

body, .wp-site-blocks {
  overflow: visible !important;
}
 