/* Sofia Sea View Otranto */
:root {
  --navy: #082f55;
  --blue: #0d4f80;
  --gold: #c9972f;
  --gold-dark: #a57822;
  --text: #112f4a;
  --muted: #5d6f7e;
  --line: #e9edf1;
  --soft: #f7fbfd;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(8, 47, 85, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; }

.site-header {
  height: 112px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 72px);
  box-shadow: 0 2px 22px rgba(8, 47, 85, .06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 148px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 32px);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.book-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 13px 24px;
  border-radius: 5px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold), #d9ad54);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 9px 22px rgba(201, 151, 47, .22);
  border: 1px solid rgba(255,255,255,.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.hero {
  min-height: 590px;
  background:
    linear-gradient(90deg, rgba(8,47,85,.58) 0%, rgba(8,47,85,.24) 42%, rgba(8,47,85,.08) 100%),
    url("hero-mare.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 90px clamp(26px, 6vw, 84px);
  color: white;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 500;
  max-width: 600px;
}

.hero p {
  margin: 0 0 28px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  max-width: 440px;
}

.info-strip {
  background: #fff;
  padding: 36px clamp(22px, 6vw, 80px);
  box-shadow: 0 10px 32px rgba(8, 47, 85, .06);
}

.info-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: center;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.info-item:last-child { border-right: 0; }

.info-icon {
  font-size: 34px;
  color: var(--navy);
  line-height: 1;
}

.info-item strong {
  display: block;
  font-family: Arial, sans-serif;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.info-item span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 88px clamp(22px, 6vw, 80px);
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.photo-card img {
  width: 100%;
  height: min(520px, 52vw);
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.kicker {
  color: var(--gold-dark);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.16;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -.025em;
}

.text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 30px;
}

.ambienti {
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  padding-top: 40px;
}

.center { text-align: center; }

.ambienti .text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 48px;
}

.feature {
  text-align: center;
  padding: 22px;
}

.feature .icon {
  font-size: 38px;
  margin-bottom: 18px;
  color: var(--navy);
}

.feature h3 {
  color: var(--navy);
  font-size: 19px;
  margin: 0 0 12px;
}

.feature p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.cta-band {
  background: linear-gradient(135deg, #edf8fc, #fff);
  border-top: 1px solid #e8f1f5;
  border-bottom: 1px solid #e8f1f5;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: center;
  text-align: center;
}

.cta-box p {
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  background:
    linear-gradient(rgba(8,47,85,.62), rgba(8,47,85,.62)),
    url("hero-mare.jpg") center/cover no-repeat;
  min-height: 330px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding: 70px 22px;
}

.page-hero h1 {
  margin: 0;
  width: 100%;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 44px;
  align-items: stretch;
}

.contact-card {
  background: white;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.contact-line {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
}

.contact-line:last-child { border-bottom: 0; }

.contact-line strong {
  display: block;
  color: var(--gold-dark);
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-box {
  background: var(--soft);
  border-radius: 18px;
  padding: 36px;
  border: 1px solid #e5eef3;
}

.form-box label {
  display: block;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  margin: 18px 0 8px;
}

.form-box input,
.form-box textarea {
  width: 100%;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

.form-box textarea {
  min-height: 130px;
  resize: vertical;
}

.footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

@media (max-width: 960px) {
  .site-header {
    height: auto;
    position: static;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .book-btn { margin-top: 4px; }

  .hero {
    min-height: 520px;
    padding-top: 70px;
  }

  .info-grid,
  .intro-grid,
  .cta-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .info-item:last-child { border-bottom: 0; }

  .features-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-card img {
    height: auto;
  }
}

@media (max-width: 620px) {
  .logo img { width: 128px; }

  .nav a {
    font-size: 12px;
  }

  .hero h1 { font-size: 42px; }

  .hero p { font-size: 18px; }

  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 62px 20px; }

  .gallery-grid img { height: 240px; }
}


.slideshow-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  background: rgba(0,0,0,0.35);
  user-select: none;
  transition: 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(0,0,0,0.6);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.fade {
  animation: fadeEffect 0.6s;
}

@keyframes fadeEffect {
  from {opacity: .4}
  to {opacity: 1}
}

@media(max-width:768px){
  .slide img{
    height: 320px;
  }
}