/* Custom CSS for Ghiretticostruzioni Website */

:root {
  --color-primary: #20a6f4;
  --color-secondary: #64dc64;
  --color-dark: #2c3e50;
  --color-light: #f8f9fa;
}

/* General Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: #444444;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: #1a8cd8;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
}

/* Header */
.header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
}

.header .logo {
  line-height: 0;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--color-primary);
}

/* Navigation Menu */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #2c4964;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a {
  color: var(--color-primary);
}


/* Hero Section */
.hero {
  width: 100%;
  position: relative;
  background: var(--color-dark);
  min-height: 56vh;
  padding: 120px 0 80px 0;
}

.hero h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 48px;
  font-weight: 700;
}

.hero p {
  color: #fff;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero .btn-get-started {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
  background: var(--color-primary);
}

.hero .btn-get-started:hover {
  background: #1a8cd8;
}

.hero .carousel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.hero .carousel-inner {
  width: 100%;
  height: 100%;
}

.hero .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .carousel-item::before {
  content: "";
  background-color: rgba(44, 62, 80, 0.3);
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.hero .info {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Carousel Logo */
.hero .carousel-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 3;
  width: 600px;
  height: 126px;
}

.hero .slideshow-logo {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .hero .carousel-logo {
    top: 34px;
    left: 34px;
    width: 514px;
    height: 108px;
  }
}

@media (max-width: 768px) {
  .hero .carousel-logo {
    top: 25px;
    left: 25px;
    width: 385px;
    height: 81px;
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
}

/* Sections */
.section-bg {
  background-color: #f6f9ff;
}

.section-header {
  text-align: center;
  padding-bottom: 40px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  color: #2c4964;
}

.section-header p {
  color: #728394;
  margin: 10px 0 0 0;
}

/* About Section */
.about {
  padding: 40px 0;
}

.about h3 {
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 30px;
  color: #2c4964;
}

.about ul {
  list-style: none;
  padding: 0;
}

.about ul li {
  padding-left: 28px;
  position: relative;
  padding-bottom: 10px;
}

.about ul i {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 20px;
  color: var(--color-primary);
  line-height: 1;
}

/* Services Section */
.services {
  padding: 40px 0;
}

.services .service-item {
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.08);
  height: 100%;
  padding: 60px 30px;
  text-align: center;
  background: #fff;
  border-radius: 5px;
  border-bottom: 3px solid #fff;
  transition: 0.3s;
}

.services .service-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0px 0 35px rgba(1, 41, 112, 0.15);
  transform: translateY(-10px);
}

.services .service-item .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .service-item .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
  color: var(--color-primary);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .service-item .readmore {
  color: #728394;
  text-decoration: none;
  transition: 0.3s;
}

.services .service-item .readmore:hover {
  color: var(--color-primary);
}

/* Footer */
.footer {
  background: #1f3548;
  color: #fff;
  font-size: 14px;
  position: relative;
}

.footer .footer-content {
  padding: 60px 0 30px 0;
}

.footer .footer-info {
  margin-bottom: 30px;
}

.footer .footer-info h3 {
  font-size: 28px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
}

.footer .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
}

.footer .social-links a {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #2c5aa0;
  margin-right: 10px;
  color: #2c5aa0;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: #fff;
  background: #2c5aa0;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links h4 {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul a {
  color: #a2cce3;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: #fff;
}

.footer .footer-legal {
  padding: 30px 0;
  background: #1a2332;
}

.footer .copyright {
  text-align: center;
  color: #a2cce3;
}
