/* ===================  GENERAL =================== */
body {
    background: linear-gradient(45deg, #f0f2f7, #5aa2ed);
    background-size: 300% 300%;
    animation: gradientMove 15s infinite alternate;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ===================  NAVBAR =================== */
.navbar {
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-brand img {
    width: 150px;
}

.nav-link {
    font-weight: 500;
    color: #5aa2ed !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #5aa2ed !important;
}
.social-icons a {
    font-size: 28px;
    margin: 0 10px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ===================  HERO SECTION =================== */
.hero-title {
  text-align: center;
  color: white;
  text-transform: uppercase;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.1;
}

/* --- Linea principale: GRANIERO --- */
.graniero {
  display: inline-block;
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: 0rem;
}

.graniero span {
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* Scala progressiva verso il centro */
.graniero span:nth-child(1),
.graniero span:nth-child(8) { transform: scale(1); }       /* G, O */
.graniero span:nth-child(2),
.graniero span:nth-child(7) { transform: scale(0.9); }     /* R, R */
.graniero span:nth-child(3),
.graniero span:nth-child(6) { transform: scale(0.85); }     /* A, E */
.graniero span:nth-child(4),
.graniero span:nth-child(5) { transform: scale(0.80); }     /* N, I */

/* --- Linea secondaria: GIOIELLI --- */
.gioielli {
  display: block;
  font-size: 2.2rem;
  letter-spacing: 0.2rem;
}

.hero {
    height: 100vh;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
}

.carousel-container-trasp {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    opacity: 0.3;
}

.carousel-images-trasp {
    height: 100%;
    width: 100%;
    background: url('../assets/carousel/img1.jpg') center/cover no-repeat;
    animation: changeImage 12s infinite alternate;
}

@keyframes changeImage {
    0% { background-image: url('../assets/carousel/img1.jpg'); }
    50% { background-image: url('../assets/carousel/img2.jpg'); }
    100% { background-image: url('../assets/carousel/img3.jpg'); }
}

/* ===================  SEZIONE SEDI =================== */
.sedi {
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.sede-box {
    background: white;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    transition: transform 0.3s;
    margin-bottom: 30px;
}


.sede-box:hover {
    transform: scale(1.05);
}

.sede-box,
#brand-carousel img,
#creazioni-carousel .creazione-box {
    transition: all 0.6s ease-in-out;
}

.sede-box:hover,
#brand-carousel .bramd-box:hover,
#creazioni-carousel .creazione-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ===================  SEZIONE BRAND =================== */
#brands {
    background-color: white;
    text-align: center;
}

/* ===================  SEZIONE CREAZIONI =================== */
#creazioni {
    color: rgb(255, 255, 255);
    /*padding: 50px 20px;*/
    text-align: center;
}

#creazioni-carousel, #brand-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#creazioni-carousel .creazione-box,
#brand-carousel .brand-box {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    text-align: center; 
    height: 100%; 
}


#creazioni-carousel .creazione-box:hover, 
#brand-carousel .brand-box:hover {
    transform: translateY(-5px);
}

/* ===================  SEZIONE CONTATTI =================== */
#contatti {
    background: #ffffff;
    color: rgb(0, 0, 0);
    padding: 50px 20px;
    text-align: center;
}

#contatti i {
    font-size: 22px;
    margin-right: 8px;
}

#contatti a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

#contatti a:hover {
    color: #ddd;
}

/* ===================  FOOTER =================== */
footer {
    background: #222;
    color: white;
    padding: 15px;
    font-size: 14px;
    text-align: center;
}

/* ===================  ANIMAZIONI =================== */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 2.5s;
    transition-timing-function: ease-in-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ===================  RESPONSIVE =================== */

/* Tablet */
@media (max-width: 992px) {
    .navbar-brand img {
        width: 120px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    #brand-carousel img {
        width: 80px;
    }

    #creazioni-carousel .creazione-box {
        width: 250px;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .sedi {
        padding: 40px 10px;
    }

    .sede-box {
        padding: 20px;
    }

    #brand-carousel img {
        width: 70px;
        margin: 10px;
    }

    #creazioni, #brands {
        padding: 40px 10px;
    }

    #creazioni-carousel {
        flex-direction: column;
        align-items: center;
    }

    #creazioni-carousel .creazione-box {
        width: 90%;
    }

    #contatti {
        padding: 40px 10px;
    }

    footer {
        font-size: 12px;
    }
}

/* Smartphone piccoli */
@media (max-width: 480px) {
    .navbar-brand img {
        width: 100px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    #brand-carousel img {
        width: 60px;
    }

    #creazioni-carousel .creazione-box {
        width: 95%;
    }
}
/* =================== CAROUSEL =================== */

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Nasconde la scrollbar su Webkit */
}

.carousel-item-box {
    flex: 0 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.carousel-item-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(90, 162, 237, 0.8);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(90, 162, 237, 1);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

/* =================== MOBILE =================== */
@media (max-width: 768px) {
    .carousel-item-box {
        width: 80%;
        margin: 0 auto;
    }

    .carousel-btn {
        display: none; /* Su mobile, niente frecce */
    }
}
.brand-box, .creazione-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.creazione-box img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    #brand-carousel .brand-box img {
        width: 80px;
        height: 80px;
    }

    #creazioni-carousel .creazione-box img {
        width: 150px;
        height: 150px;
    }
}
.brand-box,
.creazione-box {
    display: flex;
    flex-direction: column; /* immagine sopra, testo sotto */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar .nav-item a i {
    vertical-align: middle;
}

.navbar .nav-item.d-flex {
    align-items: center;
}
.navbar .nav-link:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
/* Pulsante flottante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25d366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.my-float{
	margin-top:16px;
}