/*
Theme Name: My Theme
Author: LakiGarang
Author URI: https://hostinger.com/tutorials/author/luqman
Description: A development theme, from static HTML to WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset & font */
* {margin:0;padding:0;box-sizing:border-box;}
body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background:#f7f9fc;
  color:#333;
  line-height:1.6;
  overflow-x:hidden;
}

/* Animazioni base */
.fade-in {
  opacity:0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.fade-in.visible {
  opacity:1;
  transform: translateY(0);
}
.pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {transform:scale(1);}
  50% {transform:scale(1.08);}
  100% {transform:scale(1);}
}

/* Header */
header {
  position: relative;
  background: #0046a5;
  padding: 120px 20px;
  text-align: left;
  color: #fff;
  overflow: hidden;
}
header::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  background: url("cropped-logo.png") no-repeat center/contain;
  opacity: 1; /* logo pieno */
  pointer-events: none;
}
header .content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
header h1 {
  font-size:2.8rem;
  font-weight:700;
}
header h2 {
  font-size:1.8rem;
  margin:15px 0;
  font-weight:400;
}
header p {
  font-size:1.1rem;
  max-width:500px;
  margin-bottom:25px;
}
header .buttons a {
  display:inline-block;
  margin-right:15px;
  padding:12px 28px;
  border-radius:25px;
  text-decoration:none;
  font-weight:600;
  transition:all .3s ease;
}
.btn-primary {
  background:#fff;
  color:#0046a5;
}
.btn-primary:hover {
  background:#e6eaf0;
}
.btn-secondary {
  background:transparent;
  border:2px solid #fff;
  color:#fff;
}
.btn-secondary:hover {
  background:#fff;
  color:#0046a5;
}

/* Features grid */
.section {
  max-width:1200px;
  margin:80px auto;
  padding:0 20px;
}
.section h2 {
  text-align:center;
  font-size:2rem;
  margin-bottom:40px;
  color:#0046a5;
}
.features {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}
.feature {
  background:#fff;
  border-radius:16px;
  padding:30px 20px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  transition:transform .3s ease, box-shadow .3s ease;
}
.feature:hover {
  transform:translateY(-6px);
  box-shadow:0 12px 24px rgba(0,0,0,0.12);
}
.feature img {
  width:70px;
  margin-bottom:15px;
}
.feature h3 {
  font-size:1.2rem;
  color:#0046a5;
  margin-bottom:10px;
}

/* About */
.about {
  background:#fff;
  padding:80px 20px;
  border-top:5px solid #0046a5;
  text-align:center;
}
.about h2 {
  margin-bottom:30px;
  color:#0046a5;
}
.about p {
  max-width:800px;
  margin:0 auto 20px;
  font-size:1.05rem;
}

/* Image banner */
.banner {
  margin:60px 0;
}
.banner img {
  width:100%;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(0,0,0,0.1);
}

/* Video section */
.video-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centra orizzontalmente */
  gap: 20px; /* spazio tra i video, regola come vuoi */
}

.video-item {
  width: 100%;
  max-width: 500px; /* o un valore adatto, per limitare la larghezza massima */
}

.video-item video {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.videos {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
  gap:30px;
  max-width:1000px;
  margin:80px auto;
  padding:0 20px;
}
.videos video {
  width:100%;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

/* Cards (extra services) */
.cards {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:30px;
  max-width:1200px;
  margin:80px auto;
  padding:0 20px;
}
.card {
  background:#fff;
  border-radius:18px;
  box-shadow:0 6px 18px rgba(0, 0, 0, 0.08);
  padding:30px 20px;
  text-align:center;
  transition: all 0.3s ease;
  border:1px solid #e6eaf0;
}
.card:hover {
  transform:translateY(-8px);
  box-shadow:0 12px 24px rgba(0,0,0,0.12);
  border-color:#0046a5;
}
.card img {
  width:70px;
  margin-bottom:20px;
}
.card h3 {
  color:#0046a5;
  font-size:1.3rem;
  margin-bottom:10px;
}
.card p {
  color:#444;
}

/* Footer */
footer {
  background:#0046a5;
  color:#fff;
  padding:40px 20px;
  text-align:center;
  margin-top:60px;
}
footer a {
  color:#fff;
  text-decoration:underline;
}
/* Nuova griglia hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title photo"
    "frasi photo"
    "tasti photo";
  gap: 20px;
  align-items: center;
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

.hero-title { grid-area: title; font-size: 2.8rem; font-weight: 700; }
.hero-photo { grid-area: photo; text-align: center; }
.hero-photo img { max-width: 100%; height: auto; opacity: 0.8; }
.hero-frasi { grid-area: frasi; }
.hero-buttons { grid-area: tasti; }

.hero-buttons a {
  display:inline-block;
  margin:10px 10px 0 0;
  padding:12px 28px;
  border-radius:25px;
  text-decoration:none;
  font-weight:600;
  transition:all .3s ease;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "frasi"
      "tasti";
    text-align: center;
    padding: 40px 20px;
  }
  header {
    padding: 40px 20px;
  }
  .hero-title { font-size: 2rem; }
  .hero-frasi h1 { font-size: 1.6rem; }
  .hero-photo img { max-width: 80%; margin: 0 auto; }
}