/* CSS Document */
/* VARIABILI */
:root {
    --font-primario: "Quicksand", serif;
    --font-titoli: "Lora", serif;
    --font-scuro: #452c63;
    --sottotitoli: #3c3c3c;
    --background: #f6cdd5;
    --sfondo-lilla: #ecdcde;
    --font-logo: "Tinos", serif;
}

/* GENERALI */
body{
	font-family: var(--font-primario);
}

.container{
	width: 100%;
	max-width: 1290px;
	margin: 0 auto;
}

.flex {
    display: flex;
}
.bi-cart-fill::before {
    font-size: 20px;
}

html {
  scroll-behavior: smooth;
}

/*-----------------
--- HOME HEADER ---
------------------- */

header {
    color: var(--font-scuro);
    text-transform: uppercase;
    font-weight: bold;
}
header.flex{
	justify-content: space-between;
	align-items: center;
	padding: 20px 0;
}
.logo {
    width: 100px;
    align-items: center; 
    gap: 10px; 
}

.logo h2 {
    font-family: var(--font-titoli);
}

.logo h2 span{
    font-family: var(--font-logo);
    font-style: oblique 59deg; /* O di flora in corsivo*/
    font-size: 1.6rem; 
}

.logo h2 a {
    text-decoration: none;
    color: var(--font-scuro);
}

.logo img {
    width: 50%;
}

.account a {
    color: #fff;
    text-decoration: none;
    text-transform: none;
}
nav ul {
	list-style-type: none;
	display: flex;
	gap: 20px;
}

nav ul a {
    text-decoration: none;
    color: var(--font-scuro);
    padding-bottom: 5px; 
   
}

nav ul a:hover{
    cursor: pointer;
    font-weight: bold;
    border-bottom: 2px solid #452c63;
}
.menu-toggle span {
	display: block;
	width: 25px; 
	height: 3px;
	background-color: #333;
	margin-bottom: 5px;
}
.menu-toggle {
	display: none;
}
/*---------------
--- HOME HERO ---
----------------- */

.hero.flex {
    height: 80vh;
    align-items: center;
}

.left {
  padding: 80px 20px;
  width: 45%;
}

.left h1 {
    font-size: 3rem;
    font-family: var(--font-titoli);
    color: var(--font-scuro);
}

.sfondo {
    background: url("img/cake.jpg"), no-repeat;
    background-size: cover;
    height: 100vh;
}

.button {
    background: var(--font-scuro);
    border: none;
    color: #fff;
    padding: 15px 20px;
    font-weight: bold;
    margin-top: 10px;
    transition: transform.7s; 
}
.button:hover {
    transform: translateY(-7px); /*fa salire pulsante di 7px*/
	cursor: pointer;
}
.account.flex {
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.uppercase {
    text-transform: uppercase;
}

.sottotitoli {
    line-height: 1.4;
    color: var(--sottotitoli);
    font-weight: 550;
    font-size: 1.1rem;
}
.left .button a {
    text-decoration: none;
    color: #fff;
}

/*-----------------
-- HOME PRODUCTS --
------------------- */

.products {
    padding: 100px 0;
}

.products .container {
    justify-content: space-between;
    align-items: center;
}
.title {
    width: 70%;
}
.title p {
    color: var(--sottotitoli);
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--sottotitoli);
    padding-bottom: 5px;
}
.title h2{
    line-height: 1.5;
    font-size: 1.6rem;
    font-family: var(--font-titoli);
    color: var(--font-scuro);   
}

.pulsante {
    background: var(--font-scuro);
    color: #fff; 
    border: none;
    padding: 15px 20px;
    border-radius: 15px;
    transition: transform .7s;
}
.pulsante:hover {
    transform: translateY(-7px);
	cursor: pointer;
}
.torte {
    padding-left: 40px;
    justify-content: center;
    gap: 40px;
  /*  padding-left: 50px;*/
}

.torte img {
    width: 40%;
}

/* -------------------
-- HOME RICEVIMENTI --
---------------------- */
.ricevimenti {
    margin-bottom: 130px;
}
.spec {
    padding: 20px 0 60px 0;
    text-align: center;

}
.spec h2 {
    font-family: var(--font-titoli);
    color: var(--font-scuro);
    font-size: 2rem;
    text-align: center;
}

.left-pic {
    height: 70vh;
    width: 50%; 
}

.left-pic img {
    height: 70vh;
}

.weddings.flex {
    justify-content: center;
}


.right {
    padding: 0 40px;
    background-color: var(--sfondo-lilla);
    width: 50%;
}

.right h3 {
    margin: 30px 10px 10px 10px;
    line-height: 1.7;
    font-size: 2rem;
    font-family: var(--font-titoli);
    color: var(--font-scuro);   
    padding: 0 40px;
    
}
.right .sottotitoli {
    font-weight: bold;
    /*font-size: 1.3rem;*/
    text-transform: uppercase;
    border-bottom: 1px solid var(--sottotitoli);
    padding: 5px 0 5px 40px;

}


/* --------------------- 
------ GALLERIA 3D -----
------------------------ */

.galleria .viola {
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--sfondo-lilla);
}

.galleria .viola h2 {
    font-family: var(--font-titoli);
    color: var(--font-scuro);
    font-size: 2rem;
    margin-bottom: 160px;
    padding-top: 45px;
    padding-bottom: 5px;
}

.images {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.7s;
}

.images span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotateY(calc(var(--v) * 45deg)) translateZ(400px);
    
}
.images span img {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.btn-container {
    display: flex; 
    justify-content: space-between;
    gap: 800px;
    padding-bottom: 50px;
    
}
/* ACCOUNT / GRID */
.log-in {
    margin: 100px 0;
}
.log-in .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 410px);
    gap: 40px;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding: 10px;
}
.box img {
    width: 100%;
}

.image1 { 
    grid-column: 1 / 2; 
    grid-row: 1 / 2; 
}

.image2 { 
    grid-column: 4 / 5; 
    grid-row: 1 / 2; 
}

.image3 { 
    grid-column: 1 / 2;
    grid-row: 2 / 3; 
}

.image4 { 
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.image5 { 
    grid-column: 3 / 4; 
    grid-row: 2 / 3; 
}

.image6 { 
    grid-column: 4 / 5; 
    grid-row: 2 / 3; 
}


.form {
    background: var(--sfondo-lilla);
    grid-column: 2 / 4; 
    grid-row: 1 / 2;
}
.form h2 {
    margin-top: 0;
    font-size: 2rem;
    font-family: var(--font-titoli);
    color: var(--font-scuro);  
}
.form label {
  width: 100%;
  display: block;
  font-size: 1.1rem;
  margin-top: 20px;
  background-color: transparent;
  color: var(--text-color);
}

.form input {
  width: 100%;
  padding: 10px 20px;
  margin-top: 5px;
  border: none;
  border-radius: 5px;
}

.form .pulsante {
    display: inline-block;
    text-align: center;
    padding: 10px;
    margin-top: 20px; }

/* SEDI / LOCATIONS */

.locations {
    padding-top: 30px;
}
.locations h2 {
    font-family: var(--font-titoli);
    color: var(--font-scuro);
    font-size: 2rem;
    text-align: center;
    padding-bottom: 50px;
}
.loc-container {
    gap: 20px;
    justify-content: center;
}
.loc-card {
    width: 40%;
    background: var(--sfondo-lilla);
}

.loc-card img {
    width: 100%;  
}
.loc-card h3 {
    font-family: var(--font-titoli);
    color: var(--font-scuro);
    text-align: center;
    font-size: 2rem;
}

.content-container {
    padding: 10px;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
}

.informazioni{
    text-align: center;
}
.informazioni .sottotitoli {
    font-size: 1rem;
}
.informazioni button {
    margin-right: 10px;
    color: var(--font-scuro);
    border: 2px solid var(--font-scuro);
    background: none;
    padding: 10px 15px;
    font-weight: bold;
}

.informazioni button:hover {
    background: var(--font-scuro);
    color: #fff;
}
.call {
    padding-left: 10px;
}

/* FOOTER */

footer {
    padding: 60px 0;
}
.widget-container.flex {
    justify-content: space-around;
    align-items: center;
    gap: 50px;
}

.menu-widget ul {
    list-style: none;
}


.menu-widget ul li {
    padding: 0 20px;
}

input#emailNewsletter {
    border: 1px solid grey;
    padding: 10px 20px;
    margin: 10px;
}

.newsletter-widget h4 {
    font-size: 1.2rem;
    font-family: var(--font-titoli);
    color: var(--font-scuro);
}
.newsletter-widget{
    text-align: center;
}
.newsletter-widget label {
    display: none;
}


/*MEDIA QUERY TABLET */

@media(max-width:1025px) {

    /* HOME */
    .left {
    padding: 0 30px;
    width: 100%;
    text-align: center;
    }
    
    .hero.flex {
        height: 50vh;
    }
    
    .sfondo {
        background: url("img/mobile-grande.jpg");
        background-position: center;
        background-size: cover;
    }
    
    header.flex {
    justify-content: space-around;
    }
    
    
    .products .container {
        display: block;
    }
    
    .title {
    width: 90%;
    text-align: center;
    padding-left: 80px;
    }
    
    .torte {
    padding-top: 70px; 
    padding-left: 0;
        
    
    }
    
    .products {
    padding: 70px 0;
    }
    
    .weddings.flex {
        display: block;
    }
    
    .left-pic img {
        padding-left: 25px;
    }
    
    .right .sottotitoli {
        margin-top: 0;
        padding-top: 30px;
    }
    
    .right {
        padding-bottom: 20px;
        width: 100%;
    }
    
    footer .container {
    justify-content: space-around;
    padding: 0 20px;
    }
    
    .bottom .sottotitoli {
        padding-left: 20px;
    }
    
          .images {
    width: 250px;
    height: 250px;
  }

  .images span {
    transform: rotateY(calc(var(--v) * 45deg)) translateZ(300px);
  }

  .btn-container {
    gap: 200px; /* way more reasonable for tablet */
  }

  .galleria .viola h2 {
    margin-bottom: 80px; /* reduce vertical space */
  }


    /* ACCOUNT */
    .log-in {
        margin: 60px 0;
    }
    .log-in .container {
        gap: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: auto;
    }

    .image1 { grid-column: 1 / 2; grid-row: 1; }
    .image2 { grid-column: 2 / 3; grid-row: 1; }

    .form {
        grid-column: 1 / span 2; 
        grid-row: 2;
        padding: 20px;
    }

    
    .image3 { grid-column: 1 / 2; grid-row: 3; }
    .image4 { grid-column: 2 / 3; grid-row: 3; }

    
    .image5, .image6 {
        display: none;
    }
    
       .box.form {
        padding: 40px 20px;    
    }
    
    .box {
        padding: 0;
    }
    
    .box img {
        width: 100%;
        height: auto;
    }
    
     .widget-container {
            display: block;
        }
        
        .footer.flex {
            flex-direction: column;
            text-align: center;
        }
        
        .footer.flex li {
            padding: 10px;
        }
        
        .form h2 {
            text-align: center;
        }
}
/*MEDIA QUERY SMARTPHONE */
    
    
    @media(max-width:767px) {
    
    /*menù*/
    .account .button, .account.flex {
        display: none;
    }
    .menu-toggle {
        order: 3;
		display: block;
		margin: 10px;
	}
	
	.menu-toggle span {
        background: var(--font-scuro);
		transition: transform .5s;
	}
	header {position: relative;}
    
    .logo {padding-left: 20px;}
	
	nav {
		position: fixed; /* rispetto a body (viewport)*/
		top: 0;
		left: -100%; /*nascondere, solo far vedere se è cliccato*/
		background: var(--font-scuro);
		height: 100vh;
		width: 50%;
		transition: left .4s;
	}
    nav ul {
        padding-top: 25px;
    }
    
    nav ul li a {
        color: #fff;
    }
    nav.open {
		left:0; /*per mostrare*/
	}
	
	ul.menu {
		flex-direction: column;
	}
	
	.menu-toggle.close > span:nth-child(1) {
		transform: translateY(10px) rotate(45deg);
	}
	.menu-toggle.close > span:nth-child(2) {
		opacity: 0;
	}
	.menu-toggle.close > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
	}

    /*home*/
    .hero.flex {
        height: 60vh;
        }
    
    .left {
        width: 100%;
    }
    
    .sfondo {
        background: url("img/mobile-grande.jpg");
        background-size:cover;
        background-position: center right 35%;
        height:140vh;
    }
        
     .products .container {
        display: block;        
    }
    
    .products {
        padding: 60px 0;
    }
    
    .title {
        width: 100%;
        padding: 20px;
        text-align: center;
    }
    .torte {
        display: block;
        padding: 20px;
    }
    
    .torte img {
        width: 100%;
        text-align: center;
    }
    .spec {
        padding-bottom: 80px;
    }
    
    .spec h2 {
        padding: 0 10px;
        line-height: 1.4;
    }
    
    .weddings {
        display: block;
    }
    .left {
        text-align: center;
        padding: 20px;
    }
    .left .sottotitoli {
        padding: 20px;
    }
    .left h1 {
        padding: 0 7px;
        font-size: 2.5rem;
    }
    .left-pic {
        width: 100%;
        height: auto;
    }
    
    .left-pic img {
        height: auto;
        width: 100%;
    }
    
    .right {
        width: 100%;
    }
    .right h3 {
        font-size: 1.6rem;
        margin: auto;
        padding: 0 0 30px 0;
    }
    .right .sottotitoli {
        padding: 30px 0 5px 0px;
    }
    
    .galleria {
        display: none;
    }
    
   /* footer .container {
        display: block;
        text-align: center;
    } */
    .mobile-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
        
    }
   /* footer input[type="email"] {
    margin-bottom: 20px;
} */
    .campi_form p {
        padding-right:0;
    }
        
    /* ACCOUNT */
    
    .log-in {
        margin: 60px 0;
    }
    .log-in .container {
        gap: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        grid-template-rows: auto;
    }

    .image1 { grid-column: 1 / 2; grid-row: 1; }
    .image2 { grid-column: 2 / 3; grid-row: 1; }

    .form {
        grid-column: 1 / span 2; 
        grid-row: 2;
        padding: 20px;
    }

    
    .image3 { grid-column: 1 / 2; grid-row: 3; }
    .image4 { grid-column: 2 / 3; grid-row: 3; }

    
    .image5, .image6 {
        display: none;
    }
    
       .box.form {
        padding: 40px 20px;    
    }
    
    .box {
        padding: 0;
    }
    
    .box img {
        width: 100%;
        height: auto;
    }
    .loc-container {
        display: block;
        }
    .widget-container {
            display: block;
        }
        
        .loc-card {
            width: 100%;
        }
        .widget-container {
            display: block;
        }
        
        .footer.flex {
            flex-direction: column;
            text-align: center;
        }
        
        .footer.flex li {
            padding: 10px;
        }
        
        .form h2 {
            text-align: center;
        }
}


