/*!
Theme Name: FluvioneWay
Theme URI: 
Author: Carlo Carlini
Author URI: https://blip.it/
Description: Tema per il gioco FluvioneWay - Percorsi turistici gamificati di Roccafluvione
Version: 2.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fluvioneway
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, gamification

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

FluvioneWay is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Original+Surfer&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,600;1,800&display=swap');
/* ! Reset */
body, html{ font-size: 16px; font-family: "Original Surfer","Gabarito", 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif; box-sizing: border-box;margin: 0;padding: 0;}
*,*:before,*:after{ box-sizing: border-box; }
h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0;padding: 0;}
ol,ul{list-style-type: none;}
img{height: auto;}
a{text-decoration: none;}
hr{border:none; border-bottom: 1px solid #ddd}

/* ! font-size system */
.text-g{font-size: 8rem;}

h1{font-size: 3.4rem;}
h2{font-size: 2.2rem;}
h2{font-size: 1.5rem;}
h3{font-size: 1rem;}
h4{font-size: 1rem;}
h5{font-size: 1rem;}
h6{font-size: 1rem;}

p{font-size: 1rem;}

h1, h2, h3, h4, h5, h6, ol, ul, p{margin-bottom: 1rem;}

@media (max-width: 768px){
    .text-g{font-size: 4rem;}

h1{font-size: 3.4rem;}
h2{font-size: 2.2rem;}
h2{font-size: 1.5rem;}
h3{font-size: 1rem;}
h4{font-size: 1rem;}
h5{font-size: 1rem;}
h6{font-size: 1rem;}
}


/* ! color system */
:root{
    --testo: #343434;
    --link: #00AAFF;
    --gialloevidente: #FFDC52;
    --aranciomura: #C89C3D;
    --bianco: #FCFCFC;
    --sfondo: #d2ffe4;
    --grigioscuro: #b9b9b9;
    --grigiochiaro: #F2F2F2;
    --rosso: #fc1c1c;
    --verde: #00b65b;
    --verde-chiaro: #d2ffe4;
    --verde-foglia-logo: #8faf41;
    --marrone-logo: #47301f;
}

/* ! button */
[class*='b-button']{
    font-family: "Poppins", serif;
    font-weight: 500;
    border: 2px solid var(--testo); 
    border-radius: 50px; 
    padding: 7px 20px; 
    background-color: var(--link); 
    color: var(--bianco); 
    -webkit-box-shadow: 0px 2px 0px 0px var(--testo); 
    box-shadow: 0px 2px 0px 0px var(--testo);
}
.b-button a{
    font-family: "Poppins", serif;
    font-weight: 500;
    color: var(--bianco);
    font-size: 14px;
    text-decoration: none;
}

.b-button--rosso,
.b-button--verde{font-size: 14px; cursor: pointer; min-width: 9rem; text-align: center;}
.b-button--rosso{background-color: var(--rosso); touch-action: none; user-select: none;}
.b-button--verde{background-color: var(--verde);}


body{
    background-color: var(--verde-chiaro);
    background-image: url('https://secretumkey.it/wp-content/uploads/2025/03/cornice-smartphone.png');
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    @media (max-width: 768px){
        background-image: none!important;
    }
}

/* -- INTERNO SCHERMO TELEFONO -- */
.main-container{
    width: 390px; 
    aspect-ratio: 9 / 18;
    background-color: var(--sfondo); 
    position: relative;
    border-radius: 30px;
    overflow: auto;
    @media (max-width: 768px){
        height: 100dvh!important;
        width: 100dvw!important;
        aspect-ratio: auto;
        border-radius: 0;
        overflow: auto;
    }
}
.sfondo-main-inizio{
    background-image: url('https://fluvioneway.it/wp-content/uploads/2025/11/schermate_partenza.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.sfondo-terza-slide{
    background-image: url('https://fluvioneway.it/wp-content/uploads/2025/12/percorso@05x.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.sfondo-quarta-slide{
    background-image: url('https://fluvioneway.it/wp-content/uploads/2025/12/schermate@05x.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}



.contenuti-main{
    height: 100%;
    padding-top: 30px;;
    display: flex;
    flex-direction: column;
    justify-content: space-between;   
    align-items: center;
}
.titolo-gioco{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -20px;
}   
.titolo-gioco img{
    width: 80%;
    height: auto;
}

/* -- stemma gioco amo -- */
.stemma-gioco-amo{
    display: flex;
    justify-content: center;
    align-items: center;   
}
.contenitore-bordo{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18%;
    height: auto;
    border-radius: 50%;
    background-color: var(--verde-foglia-logo);
    padding: 3px;
    border: 3px solid var(--marrone-logo);
}
.stemma-gioco-amo img{
    border-radius: 50%;
    width: 100%;
    height: auto;
    background: #fffbee;
    padding: 8px;
}


/* -- pulsante avvio test -- */
.pulsante-avvio-test{
    width: 200px;
    height: 40px;
    border: 3px solid red;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
}
.pulsante-avvio-test p{
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: #000;
}

/*  --  Personaggio vecchio --  */
/* .trufflino-spiega{
    background-image: url('https://fluvioneway.it/wp-content/uploads/2025/12/truffolino-schermata-iniziale-chef-1.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 95%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 50px;
    z-index: 1;
} */


/* -- FOOTER ISTITUZIONALE -- */
.contenitore-footer{
    background-color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    max-width: 100%;
    align-items: center;
    justify-self: space-between;
    padding: 10px 10px 5px 10px;
}
.logo-istituzionale{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;   
}
.immagine-logo-footer{
    max-width: 80%;
    height: auto;
}

.bottoni-footer{
    display: flex;
    flex-direction: row;
    row-gap: 20px;
    justify-content: space-evenly;
    width: 90%;
    margin-bottom: 20px;
}
.bottoni-footer>.b-button{
    min-width: 230px;
    display: flex;
    justify-content: center;    
}



/* ! header */
.h-header{position: sticky; top: 0; padding: 0 35px; z-index: 1000;
    @media (max-width: 768px){padding: 0 20px;}}
.h-header__container{height: 70px; display: flex;}

.h-header__profilo,
.h-header__punteggio,
.h-header__notifica{display: flex; align-items: center;}
.h-header__punteggio{justify-content: center;}
.h-header__notifica{justify-content: end;}

.h-header__immaginep{
    width: 40px; 
    height: 40px; 
    background-color: var(--link); 
    border-radius: 50%; border: 
    2px solid var(--testo); display: flex; 
    justify-content: center; 
    align-items: center;
}
.h-header__immaginep p{margin: 0; padding: 0; color: var(--bianco); font-weight: 600; font-size: 1.3rem;}
.h-header__punteggio{display: flex; align-items: center;}
.h-header__punti{display: flex; align-items: center; gap: 5px; background-color: var(--bianco); border: 2px solid var(--testo); padding: 2px 15px; border-radius: 20px;}
.h-header__punti p,
#PunteggioTotaleDiv{font-size: 0.8rem; font-weight: 600; margin: 0; padding: 0;}

.h-header__notifica img{width: 40px;}




.contenitore-schermo-gioco{
    /* border: 1px solid red; */
    position: absolute;
    display: flex; 
    justify-content: center;
    align-items: center; 
    /* padding-bottom: 50px; */
    padding-top: 70px;
    width: 100%; 
    height: 100%;
    top: 0;
    @media (max-width: 768px){
        /* padding-bottom: 100px;  */
        padding-top: 70px
    }
       
}

#contenitore-gioco-phaser{
    /* border: 1px solid blue; */
    width: 100%;
    height: 100%;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;  
    position: relative;
      @media (max-width: 768px){
        width: 100%; 
        height: 100%;
    }
}

/* .g-gioco__container{margin-top: 55px;} */




/* ! footer 
.f-footer{
    position: fixed; 
    display: none;
    bottom: 0; 
    background-color: var(--bianco); 
    border-top: 2px solid var(--testo); 
    padding: 0 35px;
    max-width: 700px;
    @media (max-width: 768px){padding: 0 20px;}}
.f-footer__container{height: 80px; display: flex; align-items: center; padding-bottom: 10px;}

.f-footer__button{display: flex; justify-content: start; align-items: center;}
.f-footer__cartina, 
.f-footer__classifica,
.f-footer__profilo{display: flex; justify-content: end;}
.f-footer__profilo{justify-content: end;}
.f-footer img{width: 32px;}
.f-footer__cartina img{width: 38px;}

*/



/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}






/*  --  Boobble Speach  --  */

/* div.bubble {
	position: relative;
	background-color: #fff;
	border: 6px solid var(--marrone-logo);
	border-radius: 30px;
}


div.bubble:before,
div.bubble:after {
	content: ' ';
	position: absolute;
	width: 0;
	height: 0;
}

div.speech:before {
	left: 225px;
	bottom: -50px;
	border: 25px solid;
	border-color: var(--marrone-logo) transparent transparent var(--marrone-logo);
}

div.speech:after {
	left: 231px;
	bottom: -34px;
	border: 19px solid;
	border-color: #fff transparent transparent #fff;
}

div.thought:before,
div.thought:after {
	left: 10px;
	bottom: -30px;
	width: 40px;
	height: 40px;
	background-color: #fff;
	border: 8px solid var(--marrone-logo);
	-webkit-border-radius: 28px;
	-moz-border-radius: 28px;
	border-radius: 28px;
}

div.thought:after {
	width: 20px;
	height: 20px;
	left: 5px;
	bottom: -40px;
	-webkit-border-radius: 18px;
	-moz-border-radius: 18px;
	border-radius: 18px;
} */







/* ! Swiper Slider */
.bubble.speech {
    position: relative;
    width: 95%;
    padding: 20px;
    height: auto!important;
}

.mySwiper {
    width: 100%;
    height: auto!important;
    position: relative;
}
.swiper{
    height: auto!important;
}
.swiper-wrapper {
    display: flex;
    height: auto!important;
    align-items: flex-start !important;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: auto!important;
}

.swiper-slide p {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    padding-bottom: 30px;
    width: 100%;
    text-align: left;
}

/* Contenitore pulsante CTA */
.contenitore-pulsante-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin: 0 auto;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pulsante-gioca-subito {
    font-family: "Poppins", serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--bianco);
    background: linear-gradient(135deg, #00b65b 0%, #00d96f 100%);
    padding: 15px 45px;
    border: 3px solid var(--testo);
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0px 4px 0px 0px var(--testo), 0px 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pulsante-gioca-subito::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.pulsante-gioca-subito:hover::before {
    width: 300px;
    height: 300px;
}

.pulsante-gioca-subito:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px 0px var(--testo), 0px 12px 25px rgba(0, 0, 0, 0.4);
}

.pulsante-gioca-subito:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px 0px var(--testo), 0px 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .pulsante-gioca-subito {
        font-size: 1.1rem;
        padding: 12px 35px;
    }
}

.truffolino-spiega-slide{
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}
.swiper-slide img{
    width: 100%;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Pagination */
.swiper-pagination {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center;
    width: auto !important;
    z-index: 100;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: var(--bianco) !important;
    opacity: 0.8 !important;
    border: 1px solid var(--marrone-logo);
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--bianco) !important;
    transform: scale(1.2);
}

/* Frecce di navigazione */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.3);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Nascondi frecce su schermi piccoli se necessario */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px !important;
    }
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */










































































/* ! grid system */
.grid{display: flex; flex-wrap: wrap}

.col-20{width: 20%;}
.col-25{width: 25%;}
.col-30{width: 30%;}
.col-33{width: 33.33%;}
.col-40{width: 40%;}
.col-50{width: 50%;}
.col-60{width: 60%;}
.col-70{width: 70%;}
.col-80{width: 80%;}
.col-90{width: 80%;}
.col-100{width: 100%;}

@media (max-width: 768px){
}
