/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Base styles */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #000;
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4 {
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  background-image: url('img/cedec-landing-rischio-impresa.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  min-height: 100vh;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: white;
}

.hero-text {
  flex: 1 1 45%;
}

.logo,
.footer-logo {
  max-width: 300px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-text p {
  font-size: 1.2em;
  line-height: 1.6;
  font-weight: 400;
}

.hero-form {
    background: rgba(255, 255, 255, 0.523);
    color: #333;
    padding: 0 30px;
    border-radius: 8px;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 500px;
    max-width: 500px;
    min-height: 600px;
}
.hero-form h3 {
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
/*
.hero-form input,
.hero-form label,
.centered-form input,
.centered-form label {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  text-align: left;
}

.hero-form label,
.centered-form label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0;
}

.hero-form input[type="checkbox"],
.centered-form input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
}*/

button {
  background-color: #ff6a13;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  display: inline-grid;
  align-items: center;
  gap: 0.5rem;
  font-size: 20px;
}

/* Details Section */
.details {
  background: #EDEDED;
  padding: 4rem 1rem;
}

.details-header {
  text-align: left;
  margin-bottom: 2rem;
}
.details-header h2{
    font-size: 2.5rem;
    text-align: left;
    color: #ff6a13;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.detail-item h4 i {
  color: #ff6a13;
  margin-right: 0.5rem;
}

.detail-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  height: 100%;
  background-color: #ff6a13;
  color: #fff;
  padding-bottom: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-buttons img{
    height: 30px!important;
  }

@media (max-width: 768px) {
  .store-buttons img{
    height: 40px!important;
  }
}

/* Info Section */
.info-section {
  background-color: #fff;
  padding: 4rem 1rem;
}

.info-header {
  text-align: right;
  margin-bottom: 2rem;
}
.info-header h2{
    font-size: 2.5rem;
    text-align: left;
    color: #ff6a13;
}

/* Speakers Section */
.speakers-section {
  padding: 4rem 1rem;
  background-color: #ff6a13;;
}

.speakers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.speakers-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  flex: 1 1 56%;
  color: #fff;
}
.speakers-info:first-child{
  border-right: 1px solid #fff;
}
@media (max-width: 850px) {
  .speakers-info:first-child{
    border:none;
  }
}

.speakers-info h4{
  font-size: 24px;
  margin-bottom: 10px;
}

.speaker {
  text-align: center;
  padding: 20px;
}

.speaker img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.speakers-header {
  flex: 1 1 35%;
  text-align: right;
}
.speakers-header h2{
    font-size: 2.5rem;
    text-align: left;
    color: #fff;
}

/* About Section */
.about-section {
  background-color: #EDEDED;
  padding: 4rem 1rem;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-image {
  flex: 1 1 45%;
}

.about-text {
  flex: 1 1 50%;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

.about-text button {
  margin-top: 1rem;
}

.about-text h2{
    font-size: 2.5rem;
    text-align: left;
    color: #ff6a13;
}

/* Final Form Section */
.final-form-section {
  background-image: url('img/cedec-form-bg.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.form-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0 1rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
}

.form-overlay h2 {
  font-weight: 700;
  margin-bottom: 30px;
}

.centered-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 30px;
}

/*.centered-form input {
  padding: 12px;
  border-radius: 4px;
  border: none;
  font-family: 'Montserrat', sans-serif;
}

.centered-form button {
  background-color: #ff6a13;
  color: white;
}*/

/* Footer */
.site-footer {
  background-color: #000E34;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.social-icons a {
  color: #ff6a13;
  font-size: 1.5rem;
  margin-left: 1rem;
}

.footer-bottom {
  font-size: 0.875rem;
  text-align: justify;
  margin-top: 2rem;
}

.footer-bottom a {
  color: #fff;
  text-decoration: underline;
}

hr {
  border-color: #fff;
  margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content,
  .speakers-grid,
  .about-grid,
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .details-header,
  .info-header,
  .speakers-header {
    text-align: center;
  }

  .about-image,
  .about-text,
  .hero-text,
  .hero-form {
    flex: 1 1 100%;
  }
  .hero-content{
    padding: 20px;
  }
  .speakers-grid{
    flex-direction: column-reverse;
  }
}
