/*===== GOOGLE FONTS =====*/
/*@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");*/
@font-face {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: bold;
}
/*===== VARIABLES CSS =====*/
:root{
  --header-height: 3rem;
  --font-semi: 600;
}

/*===== Colores =====*/
:root{
  --first-color: #E21A22;
  --second-color: #002D62;
}

/*===== Fuente y tipografia =====*/
:root{
  --body-font: Verdana, Geneva, Tahoma, sans-serif;
  --big-font-size: 3rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
}
@media screen and (min-width: 768px){
  :root{
    --big-font-size: 4rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
  }
}

/*===== Margenes =====*/
:root{
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
}

/*===== z index =====*/
:root{
  --z-back: -10;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*===== BASE =====*/
*,::before,::after{
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}
body{
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  min-width: 360px;
}
h1,h2,p{
  margin: 0;
}
ul{
  margin: 0;
  padding: 0;
  list-style: none;
}
a{
  text-decoration: none;
}
img{
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title{
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after{
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}
.section{
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid{
  max-width: 1200px;
  display: grid;
  grid-template-columns: 100%;
  grid-column-gap: 2rem;
  width: calc(100% - 2rem);
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}
.l-header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #002D62;
  box-shadow: 0 1px 4px rgba(146,161,176,.15);
  border-radius: 0px 0px 20px 20px;
}

/*===== NAV =====*/
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 942px){
  .nav__menu{
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: .5s;
  }
}
.nav__item{
  margin-bottom: var(--mb-4);
}
.nav__link{
  position: relative;
  color: #fff;
}
.nav__link:hover{
  position: relative;
}
.nav__link:hover::after{
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.logo{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}
.nav__logo{
  margin: auto;
  width: 120px;
  height: 46px;
  background-size:contain;
  background-repeat:   no-repeat;
  background-position: center;
  background-image: url("../img/logo_EER.png");
}
.nav__logo_callan{
  margin: auto;
  width: 100px;
  height: 46px;
  background-size:contain;
  background-repeat:   no-repeat;
  background-position: center;
  background-image: url("../img/callan-accredited-school-logo-with-shadow.jpg");
}

.nav__toggle{
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active::after{
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show{
  right: 0;
}

.l-main{
  margin-top: 60px;
}

/*===== HOME =====*/
.home{
  height: calc(100vh - 3rem);
  row-gap: 1rem;
}
.home__data{
  align-self: center;
  margin-bottom: -50px;
}
.home__title{
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-3);
}
.br_title{
  display: initial;
}
@media screen and (min-width: 1400px){
  .br_title{
    display: none;
  }
}

#home_subtitle{
  font-size: 25px;
  margin-bottom: var(--mb-1);
}
#home_subtitle_subtitle{
  font-size: 20px;
  margin-bottom: var(--mb-5);
}
.home__title-color{
  color: var(--first-color);
}
.certificazioni_color{
  color: var(--first-color);
}
.main_social p{
  font-size: 20px;
  font-weight: bold;
  margin-top: 10%;
}
.home__social{
  display: flex;
  flex-direction: column;
  margin-top: 70px;
}
.home__social div{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.home__social div:nth-child(2){
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home__social div p{
  height: 40px;
  font-weight: bold;
  font-size: var(--h2-font-size);
  margin-left: 10px;
}
.home__social-icon{
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 3rem;
  color: var(--second-color);
}
.home__social-icon:hover{
  color: var(--first-color);
}

.back_image{
    background-image: url("../img/cabine_telefono_background_1.png");
    background-size: contain;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: bottom right;
}

@media screen and (min-width: 600px){
  .back_image{
    background-size: 80%;
    background-position: bottom right -50px;
  }
}
@media screen and (min-width: 1130px){
  .back_image{
    background-size: contain;
    background-position: right;

  }
}
/*
.home__img{
  position: absolute;
  opacity: 0.1;
  width: 100%;
  left: 0;
  bottom: 0;
  top: 60px;
}
.home__img img {
  margin: auto;
}
*/
/*BUTTONS*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: .75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: .5rem;
}
.button:hover{
  box-shadow: 0 10px 36px rgba(0,0,0,.15);
}




/* ===== ABOUT =====*/
#about{
  background-color: #002D62;
  color: white;
  border-radius: 50px;
  margin: 10px 5px;
}
.about__container{
  row-gap: 2rem;
  text-align: left;
  line-height: 150%;
  margin: 20px 10px;
}
.button_scopriDiPiu{
  margin: 10px auto;
}
.about__subtitle{
  margin-bottom: var(--mb-2);
  font-weight: bold;
}
.about__img{
  margin-top: 30px;
  justify-self: center;
}
.about__img img{
  width: 300px;
  border-radius: .5rem;
}
.about_callan_image_2{
  display: none;
  visibility: hidden;
}
.about_callan_image_1{
    display:block;
    visibility:visible;
  }



/* ===== COURSES =====*/
/* ===== COURSES PRICE =====*/
.courses__container{
  row-gap: 2rem;
}
.courses_card{
  box-shadow: 0 4px 25px rgba(14,36,49,.15);
  box-shadow: 0 4px 25px rgba(0, 65, 102, 0.527);
  border-radius: .5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.courses_card img{
  transition: 1s;
  /*cursor: pointer;*/
}
.price_card{
  background-image: url("../img/prezzi_corsi_it.jpg");
  max-width: 1280px;
  height: 980px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto;
}
/*
.img_corsi_opacity{
  -webkit-mask-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0.4)));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.4));

}*/
.courses_card div{
  padding:  3%;
  text-align: center;
}
.courses_card img:hover{
  transform: scale(1.1);
}
.course_subtitle{
  margin-bottom: var(--mb-2);
}
.course_text{
  line-height: 150%;
  text-align: left;
}


/* ===== QUALIFICAZIONI =====*/
#skills{
  background-color: #002D62;
  color: white;
  border-radius: 50px;
  margin: 0px 5px;
}
.qualifiche_scuole{
  margin: 10px;
  text-align: center;
}
.skills__container{
  row-gap: 0rem;
  text-align: center;
  padding: 20px;
}
.skills__container img{
  margin: auto;
}
.skills__container h2{
  margin-top: 50px;
}
.skills__subtitle{
  margin-bottom: var(--mb-2);
  text-align: left;
}
.skills__text{
  text-align: left;
  margin-bottom: var(--mb-4);
}
.skills__data{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: .5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: .5rem;
  box-shadow: 0 4px 25px rgba(14,36,49,.15);
}
.skills__icon{
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}
.skills__names{
  display: flex;
  align-items: center;
}
.skills__bar{
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: .25rem;
  border-radius: .5rem;
  z-index: var(--z-back);
}
.skills__html{
  width: 95%;
}
.skills__css{
  width: 85%;
}
.skills__js{
  width: 65%;
}
.skills__ux{
  width: 85%;
}
.skills__img{
  border-radius: .5rem;
}



/* ==== TEST ONLINE ===*/
#test_online{
  border-radius: 50px;
  margin: 0px 5px;
  background-color: #002D62;
  color: white;
}

/* ===== RECENSIONI === */
.sec_recensioni{
	/*float: left;*/
	/*position: relative;*/
	padding: 30px 0;
	/*background: #fcfcfd;*/
	z-index: 1;
	width: 100%;
}


.swiper-container {
	width: 100%;
	height: 100%;
}
.listing-carousel-button{
	position: absolute;
	top: 50%;
	width: 80px;
	height: 50px;
	line-height: 50px;
	margin-top: -25px;
	z-index: 100;
	cursor: pointer;
	/*background: #007aff;*/
  background: var(--second-color);
	box-shadow: 0 9px 26px rgba(58, 87,135,0.45);
	transition: all 200ms linear;
	outline: none;
  
  display: flex;
  justify-content: center;
  align-items: center;
}
.listing-carousel-button.listing-carousel-button-next{
	right: -30px;
	padding-right: 20px;
	border-radius: 60px 0 0 60px;
}
.listing-carousel-button.listing-carousel-button-prev{
	left: -30px;
	padding-left: 20px;
	border-radius: 0 60px 60px 0;
}
.listing-carousel-button.listing-carousel-button-next:hover{
	right: -15px;
	background: rgba(6,27,65,0.4);
}
.listing-carousel-button.listing-carousel-button-prev:hover{
	left: -15px;
	background: rgba(6,27,65,0.4);
}
.testi-item {
	transition: all .3s ease-in-out;
	transform: scale(0.9);
	opacity: 0.9;
}
.testimonials-text {
	padding: 75px 50px 75px;
	overflow:hidden;
	background: #f5f6fa;
	border:1ps solid #f1f1f1;
	border-radius: 10px;
	transition: all .3s ease-in-out;
  text-align: justify;
}
.testimonials-text-after{
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;
	position: absolute;
	color: #ccc;
  color: #384f95;
	opacity: .3;
	font-size: 35px;
	transition: all 400ms linear;
	bottom: 25px;
	right: 30px;
}
.testimonials-text-before{
	font-style: normal;
	font-weight: normal;
	text-decoration: inherit;
	position: absolute;
	color: #ccc;
  color: #384f95;
	opacity: .3;
	font-size: 35px;
	transition: all 400ms linear;
	top: 25px;
	left: 30px;
}
.testimonials-text .listing-rating{
	float: none;
	display: inline-block;
	margin-bottom: 12px;
}
.listing-rating i{
	/*color: #007aff;*/
  color: var(--first-color);
}
.testimonials-avatar h3{
	font-weight: 600;
	color: #7d93b2;
  color: var(--second-color);
	font-size: 18px;
}
.testimonials-avatar h4{
	 font-weight:400;
	 font-size:12px;
	 padding-top:6px;
	 /*color:#007aff;*/
   color: var(--second-color);
}
.testimonials-carousel .swiper-slide{
	padding: 30px 0;
}	 
.testi-avatar{
	position: absolute;
	left: 50%;
	top: -30px;
	width: 90px;
	height: 90px;
	margin-left: -45px;
	z-index: 20;
}
.testi-avatar img{
	width: 90px;
	height: 90px;
	float: left;
	border-radius: 100%;
	border:6px solid #fff;
	box-shadow: 0 9px 26px rgba(58, 87,135,0.1);
}
.swiper-slide-active .testimonials-text {
	background: #fff;
	box-shadow: 0 9px 26px rgba(58, 87,135,0.1);
}
.testimonials-text p{
	color: #878c9f;
  color: black;
	font-size: 14px;
	/*font-family: Georgia, "Times New Roman", Times, serif;
	font-style: italic;*/
	line-height: 24px;
	padding-bottom: 10px;
	font-weight: 500;
}
.text-link{
	position: absolute;
	bottom:0;
	padding: 15px 0;
	border-radius: 10px 10px 0 0;
	background: #f9f9f9;
  background: #384f95;
	border:1px solid #eee;
	box-shadow: 0 10px 15px rgba(0,0,0,0.03);
	left: 50%;
	width: 200px;
	margin-left: -100px;
}
.swiper-slide-active .testi-item{
	opacity: 1;
	transform: scale(1.0);
}
.tc-pagination{
	/*float: left;*/
  display: flex;
  justify-content: center;
	margin-top: 10px;
	width: 100% !important;
}
.tc-pagination_wrap {
	position: absolute;
	bottom: -40px;
	left: 0;
	width: 100%;
}
.tc-pagination2{
	float: none;
	display: inline-block;
	padding: 14px 0;
	background: #fff;
	border-radius: 30px;
	min-width: 250px;
	border-bottom: 0;
}
.tc-pagination .swiper-pagination-bullet, .tc-pagination2.swiper-pagination-bullet{
	opacity: 1;
	background: #384f95;
	margin:0 2px;
	width: 10px;
	height: 10px;
	transition: all 300ms ease-in-out;
}


/* ===== SOCIAL ====== */
.youtube_container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 20px 20px;
}
.youtube_container div{
    width: 300px;
    height: 175px;
    margin: 10px auto;
}
.youtube_container div iframe{
    width: 100%;
    height: 100%;
    margin: auto;
}


.instagram_container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0px auto;
  max-width: 1410px;
}
.instagram_container div{
    margin: 10px auto;
    width: 340px;
}






/* ===== CONTACT =====*/
.contact__input{
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: .5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}
.contact__button{
  display: block;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
}

.form_container div{
  height: 100%;
}
.contact__img{
  display: flex;
  align-items: center;
  align-content: center;
}
.contact__img img{
  max-height: 390px;
}
.contact__form input{
  border-width: 5px;
  border-color: var(--second-color);
  color: var(--second-color);
}
.contact__form textarea{
  border-width: 5px;
  border-color: var(--second-color);
  color: var(--second-color);
}

#mail-status{
  margin: 20px auto;
  width: 70%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  color: white;
  font-weight: bolder;
  font-size: large;
}

.error{
  background-color: red;
}
.success{
  background-color: green;
}
#mail-status p{
  text-align: center;
}

/* ===== FOOTER =====*/
/*
.footer{
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}
.footer__title{
  font-size: 2rem;
  margin-bottom: var(--mb-4);
}
.footer__social{
  margin-bottom: var(--mb-4);
}
.footer__icon{
  font-size: 1.5rem;
  color: #fff;
  margin: 0 var(--mb-2)
}*/
/*  ------------ FOOTER ----------- */
.container{
	max-width: 1300px;
	margin:auto;
}
.row{
	display: flex;
  justify-content: center;
  align-content: center;
	flex-wrap: wrap;
}
ul{
	list-style: none;
}
.footer{
	/*background-color: #162034;*/
  background-color: var(--second-color);
  padding: 70px 0;
}
.footer-col{
    width: 25%;
    padding: 0 20px;
}
.footer-col h4{
	font-size: 18px;
	color: #ffffff;
	text-transform: capitalize;
	margin-bottom: 35px;
	font-weight: 500;
	position: relative;
}
.footer-col h4::before{
	content: '';
	position: absolute;
	left:0;
	bottom: -10px;
	background-color: #FF1111;
	height: 2px;
	box-sizing: border-box;
	width: 50px;
}
.footer-col ul li:not(:last-child){
	margin-bottom: 10px;
}
.footer-col ul li {
	color: #bbbbbb;
}
.footer-col ul li a{
	font-size: 16px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 300;
	color: #bbbbbb;
	display: block;
	transition: all 0.3s ease;
}
.footer-col ul li a:hover{
	color: #ffffff;
	padding-left: 8px;
}
.footer-col .social-links a{
	display: inline-block;
	height: 40px;
	width: 40px;
	background-color: rgba(255,255,255,0.2);
  margin: 2px 2%;
	/*margin:0 10px 10px 0;*/
	text-align: center;
	line-height: 40px;
	border-radius: 50%;
	color: #ffffff;
	transition: all 0.5s ease;
}
.footer-col .social-links a:hover{
	color: #24262b;
	background-color: #ffffff;
}

.language-links {
  display: flex;
  flex-direction: row;
}
.language-links li {
  height: 30px;
	width: 40px;
  margin: 2px 5%;
  padding: 5px;
  cursor: pointer;
}

.language_active{
  padding: 2px;
  background-color: var(--second-color);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*responsive*/
@media(max-width: 767px){
    .footer-col{
        width: 50%;
        margin-bottom: 30px;
    }
}
@media(max-width: 574px){
    .footer-col{
        width: 100%;
    }
    .footer-col h4{
        text-align: center;
    }
    .footer-col h4::before{
        left:45%;
        width: 10%;
    }
    .footer-col ul li {
        text-align: center;
    }
    .footer-col ul li a{
        text-align: center;
    }
    .footer-col .social-links{
        display: flex;
        justify-content: center;
    }
    .footer-col .language-links{
        display: flex;
        justify-content: center;
    }
    .price_card{
      height: 600px;
    }

}
@media screen and (min-width: 600px) {
  .work .bd-grid{
    grid-template-columns: 50% 50%;
  }
  .courses_card{
    width: 90%;
    margin: 0px auto;
    margin-left: -0.5%;
  }
}

/* ===== MEDIA QUERIES=====*/
@media screen and (min-width: 942px){
  body{
    margin: 0;
  }
  .section{
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title{
    margin-bottom: var(--mb-6);
  }
  .section-title::after{
    width: 80px;
    top: 3rem;
  }

  .nav{
    height: calc(var(--header-height) + 1rem);
  }
  .logo{
    width: 310px;
  }
  .nav__logo{
    height: 55px;
    width: 150px;
  }
  .nav__logo_callan{
    height: 55px;
  }
  .nav__list{
    display: flex;
    padding-top: 0;
  }
  .nav__item{
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle{
    display: none;
  }
  .nav__link{
    /*color: var(--second-color);*/
    color: white;
  }

  .home{
    height: 100vh;
  }
  .home__data{
    align-self: flex-end;
  }
  .home__social div{
    align-items: center;
  }
  .home__social{
    padding-top: 0;
    padding-bottom: 1.5rem;
    flex-direction: column;
    align-self: flex-end;
  }
  .home__social div:nth-child(2){
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
  }
  .home__social-icon{
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  /*.home__img{
    width: 390px;
    position: absolute;
    right: 0;
    bottom: 0;
    bottom: 15%;
  }*/

  .about__container, .skills__container{
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    text-align: initial;
  }
  .about__img img{
    width: 400px;
  }
  .about_callan_image_2{
    display: block;
    visibility: visible;
  }
  .about_callan_image_1{
    display: none;
    visibility: hidden;
  }
  .courses__container{
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2,1fr);
    column-gap: 2rem;
  }

  .work .bd-grid{
    grid-column-gap: 1rem;
    grid-template-columns: 33% 33% 33%;
  }
  .youtube_container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 20px;
  }
  .youtube_container div{
    width: 560px;
    height: 315px;
    margin: 10px auto;
  }

  .instagram_container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0px auto;
  }
  .instagram_container div{
      margin: 10px;
  }

  .contact__form{
    width: 360px;
  }
  .contact__container{
    justify-items: center;
  }
}

@media screen and (min-width: 1024px){
  .bd-grid{
    margin-left: auto;
    margin-right: auto;
  }
  /*.home__img{
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 250px;
  }*/
  .logo{
    width: 310px;
  }
  .nav__logo{
    height: 55px;
    width: 150px;
  }
    .nav__logo_callan{
    height: 55px;
    width: 150px;
  }
}

@media screen and (min-height: 810px) and (min-width: 768px){
  /*.home__img{
    position: absolute;
    opacity: 1;
  }*/
}